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

            bobi.Eat();
            bobi.Bark();
        }
        static void Main(string[] args)
        {
            Dog sharo = new Dog();

            sharo.Eat();
            sharo.Bark();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Dog marko = new Dog();

            marko.Eat();
            marko.Bark();
        }
        public void Run()
        {
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();
        }
        static void Main()
        {
            Dog dog = new Dog();

            Console.WriteLine(dog.Eat());
            Console.WriteLine(dog.Bark());
        }
Beispiel #6
0
        static void Main(string[] args)
        {
            var dog = new Dog();

            dog.Bark();
            dog.Eat();
        }
Beispiel #7
0
        public static void Main()
        {
            // Problem 1: Single inheritance
            Dog dog = new Dog();

            dog.Bark();
            dog.Eat();
            Console.WriteLine(SEPARATOR);

            // Problem 2: Multiple inheritance
            Puppy puppy = new Puppy();

            puppy.Eat();
            puppy.Bark();
            puppy.Weep();
            Console.WriteLine(SEPARATOR);

            // Problem 3: Hierarchical inheritance
            Dog otherDog = new Dog();

            otherDog.Eat();
            otherDog.Bark();

            Cat cat = new Cat();

            cat.Eat();
            cat.Meow();
        }
Beispiel #8
0
        public static void Main(string[] args)
        {
            Dog puppy = new Dog();

            puppy.Eat();
            puppy.Bark();
        }
Beispiel #9
0
        static void Main(string[] args)
        {
            Dog peshaka = new Dog();

            peshaka.Eat();
            peshaka.Bark();
        }
Beispiel #10
0
        public static void Main()
        {
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();
        }
Beispiel #11
0
        static void Main(string[] args)
        {
            Dog dog = new Dog();

            Console.WriteLine(dog.Eat());
            Console.WriteLine(dog.Bark());
        }
Beispiel #12
0
        public static void Main(string[] args)
        {
            Dog dog = new Dog();

            dog.Bark();
            dog.Eat();
        }
Beispiel #13
0
        static void Main(string[] args)
        {
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();
            Console.ReadLine();
        }
Beispiel #14
0
        static void Main(string[] args)
        {
            Animal dog = new Animal();

            dog.Eat();
            Dog buki = new Dog();

            buki.Eat();
            buki.Bark();
        }
Beispiel #15
0
        static void Main(string[] args)
        {
            Dog    dog    = new Dog();
            Puppy  puppy  = new Puppy();
            Animal animal = new Animal();


            animal.Eat();
            dog.Eat();
        }
Beispiel #16
0
        static void Main(string[] args)
        {
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();
            Cat cat = new Cat();

            cat.Meow();
        }
Beispiel #17
0
        static void Main(string[] args)
        {
            Animal animal = new Animal();

            animal.Eat();
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();
        }
        static void Main(string[] args)
        {
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();
            Puppy puppy = new Puppy();

            puppy.Weep();
        }
Beispiel #19
0
        static void Main(string[] args)
        {
            Dog sharo = new Dog();

            sharo.Eat();
            sharo.Bark();

            Puppy lover = new Puppy();

            lover.Weep();
        }
Beispiel #20
0
        static void Main()
        {
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();
            Cat cat = new Cat();

            cat.Eat();
            cat.Meow();
        }
        public static void Main(string[] args)
        {
            var dog = new Dog();

            dog.Eat();
            dog.Bark();

            var cat = new Cat();

            cat.Eat();
            cat.Meow();
        }
Beispiel #22
0
        public void Run()
        {
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();
            Puppy puppy = new Puppy();

            puppy.Eat();
            puppy.Bark();
            puppy.Weep();
        }
Beispiel #23
0
        static void Main(string[] args)
        {
            Cat sara = new Cat();

            sara.Eat();
            sara.Meow();

            Dog marko = new Dog();

            marko.Eat();
            marko.Bark();
        }
Beispiel #24
0
        static void Main(string[] args)
        {
            Dog sharo = new Dog();

            sharo.Eat();
            sharo.Bark();

            Cat pisana = new Cat();

            pisana.Eat();
            pisana.Meow();
        }
Beispiel #25
0
        public static void Main()
        {
            var dog = new Dog();

            Console.WriteLine(dog.Eat());
            Console.WriteLine(dog.Bark());

            var cat = new Cat();

            Console.WriteLine(cat.Eat());
            Console.WriteLine(cat.Meow());
        }
        static void Main(string[] args)
        {
            Dog rachael = new Dog();

            rachael.Eat();
            rachael.Bark();
            Puppy puppy = new Puppy();

            puppy.Weep();
            Cat bonny = new Cat();

            bonny.Meow();
        }
        static void Main(string[] args)
        {
            Dog sharo = new Dog();

            sharo.Bark();
            sharo.Eat();

            Puppy puppy = new Puppy();

            puppy.Eat();
            puppy.Bark();
            puppy.Weep();
        }
Beispiel #28
0
        public static void Main(string[] args)
        {
            Dog dog = new Dog();

            dog.Age    = 45;
            dog.Name   = "Toto";
            dog.Weight = 7;
            dog.Eat();
            dog.Bark();
            Console.WriteLine(dog.Weight);
            Console.WriteLine(dog.Name);
            Console.WriteLine(dog.Age);
        }
        static void Main(string[] args)
        {
            Product     product = new Product();
            ShavingFoam foam    = new ShavingFoam();

            foam.Name = "Nivea 2";
            Dog sharo = new Dog();

            sharo.Eat();
            sharo.Bark();

            Puppy goshko = new Puppy();

            goshko.Weep();
        }
Beispiel #30
0
        static void Main(string[] args)
        {
            Dog dog = new Dog();

            dog.Eat();
            dog.Bark();

            Cat cat = new Cat();

            cat.Eat();
            cat.Meow();
            //Puppy puppy = new Puppy();
            //puppy.Eat();
            //puppy.Bark();
            //puppy.Weep();
        }