Exemple #1
0
        static void Main(string[] args)
        {
            Dog myDog = new Dog("Pepper", 4, 0, false, true, "Dog Bone");

            myDog.Bark();
            myDog.Eat();
            myDog.Sleep();

            DancingCat someCrazyCat = new DancingCat(" electric slide", "Meow the dancing cat");

            someCrazyCat.Eat();      //can eat because she's an animal
            someCrazyCat.Meow();
            someCrazyCat.AnnoyYou(); // can meow and annoy you because she's a cat
            someCrazyCat.Dance();    //can dance because she's a dancing cat.

            Fish bigFish = new Fish(false);

            bigFish.Breath();

            int money = 0;

            money += bigFish.Sell();
            money += myDog.Sell();
            money += someCrazyCat.Sell();
            Console.WriteLine("After selling my pets, I have " + money);

            Customer customer1 = new Customer("Marcus", "Tadwell");

            customer1.membership.ChangeMembership(MemberShip.Level.Preimum);
            customer1.membership.plan.ChangeRenewal(Plan.Renewal.Annual);
        }