Esempio n. 1
0
        static void Main(string[] args)
        {
            Cat anastasia = new Cat("Anastasia");

            Cat.mouseEncounters = 0;
            anastasia.CoughUpFurballs();
            anastasia.Sleep();

            Goldfish goldy = new Goldfish("Goldy");

            goldy.HideFromCat();

            Hamster fred = new Hamster("Fred");

            fred.PlanEscape();

            // Calls Orangutan
            Orangutan tan1 = new Orangutan();

            // Calls Orangutan(int)
            Orangutan tan2 = new Orangutan(100);

            // Calls Orangutan(string)
            Orangutan tan3 = new Orangutan("Stan");
        }
Esempio n. 2
0
		static void Main(string[] args)
		{
			Cat anastasia = new Cat("Anastasia");
            Cat.mouseEncounters = 0;
            anastasia.CoughUpFurballs();
            anastasia.Sleep();

            Goldfish goldy = new Goldfish("Goldy");
            goldy.HideFromCat();

            Hamster fred = new Hamster("Fred");
            fred.PlanEscape();

            // Calls Orangutan
            Orangutan tan1 = new Orangutan();

            // Calls Orangutan(int)
            Orangutan tan2 = new Orangutan(100);

            // Calls Orangutan(string)
            Orangutan tan3 = new Orangutan("Stan");
		}