예제 #1
0
        static void Main(string[] args)
        {
            Game   game   = new Game();
            Player player = new Player();

            game.Welcome();
            player.Adopt();

            //Inheritance variable - Child class
            Penguin penguin = new Penguin("Squawk, Squawk", "winter", "a fish");

            penguin.Color(); //for random color

            Console.WriteLine(penguin.sound);
            Console.ReadKey();

            //House object, diamond
            House house = new House("diamond");

            house.About();

            penguin.Eat();

            penguin.ispoop = true;
            penguin.Poop();

            //Toy object. Ice
            Toy ice = new Toy("an ice cube");

            ice.About();

            penguin.Sleep();
            game.End();
        }