Beispiel #1
0
        static void Main(string[] args)
        {
            Dog Spot = new Dog();

            Spot.Age = 5;
            Spot.move();
            Spot.makeNoise();
        }
        static void Main(string[] args)
        {
            Dog Spot = new Dog();
            Spot.Age = 5;
            Spot.move();
            Spot.makeSomeNoice();
                

        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Dog spot = new Dog();

            spot.move();
            spot.makeNoise();

            Animal pet = new Animal();

            pet.move();
            pet.makeNoise();
        }