Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Animal       animal   = new Animal();
            Vertebrate   vert     = new Vertebrate();
            Invertebrate invert   = new Invertebrate();
            WarmBlooded  warm     = new WarmBlooded();
            ColdBlooded  cold     = new ColdBlooded();
            JointedLegs  joint    = new JointedLegs();
            WithoutLegs  without  = new WithoutLegs();
            Mammals      bear     = new Mammals();
            Bird         eagle    = new Bird();
            Fish         guppy    = new Fish();
            Reptile      snake    = new Reptile();
            Amphibian    frog     = new Amphibian();
            Platypus     platypus = new Platypus();
            // Console.WriteLine(platypus.layEggBeakVenom());

            Penguin pinguin = new Penguin();



            Amphibian theFrogPrince = new Amphibian();

            Console.WriteLine(theFrogPrince.croak());
            Console.WriteLine(theFrogPrince.talk());

            Bird parrot = new Bird();

            Console.WriteLine(parrot.talk());

            Console.WriteLine("Hello World!");
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Vertibrate    vert     = new Vertibrate();
            Bird          bluejay  = new Bird();
            NonFlyingBird penguin  = new NonFlyingBird();
            Platypus      platypus = new Platypus();


            Console.WriteLine("hi");
        }