Beispiel #1
0
        static void Main(string[] args)
        {
            var americanAlligator = new Alligator(100);

            americanAlligator.IsAquatic = true;

            var africanAlligator = new Alligator(2);

            africanAlligator.IsAquatic = false;

            africanAlligator.Grunt();
            africanAlligator.Run(4);

            americanAlligator.Grunt();
            americanAlligator.Run(75);
            americanAlligator.Run(40);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var americanAlligator = new Alligator(6000);

            americanAlligator.isAquatic = true;

            var fictionalAlligator = new Alligator(200);

            fictionalAlligator.isAquatic = false;

            americanAlligator.Grunt();
            fictionalAlligator.Grunt();

            americanAlligator.Run(80);
            fictionalAlligator.Run(500);
            americanAlligator.Run(5930);
        }