Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            AmericanAlligator Alligator = new AmericanAlligator();

            Alligator.numTeeth = 50;
            Alligator.canFly   = false;
            Alligator.canSwim  = true;
            NileCrocodile Crocodile = new NileCrocodile();

            Crocodile.numTeeth = 60;
            Crocodile.canFly   = false;
            Crocodile.canSwim  = true;


            AmericanCrow Crow = new AmericanCrow();

            Crow.colorType = "black";
            Crow.canFly    = true;
            Crow.canSwim   = false;
            CommonRaven Raven = new CommonRaven();

            Raven.colorType = "slightly darker black";
            Raven.canFly    = true;
            Raven.canSwim   = false;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Method created for test
        /// </summary>
        /// <returns>Returns a string</returns>
        public static string CrocodileEat()
        {
            NileCrocodile Crocodile = new NileCrocodile();

            return(Crocodile.Eat());
        }
Exemplo n.º 3
0
        /// <summary>
        /// Method created for test
        /// </summary>
        /// <returns>Returns a string</returns>
        public static string CrocodileSleep()
        {
            NileCrocodile Crocodile = new NileCrocodile();

            return(Crocodile.Sleep());
        }