Bark() public method

public Bark ( ) : void
return void
        private static void Main(string[] args)
        {
            var dog = new Dog();

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

            var cat = new Cat();

            cat.Eat();
            cat.Meow();
        }
Beispiel #2
0
        public static void Main()
        {
            Dog dog = new Dog();

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

            Cat cat = new Cat();

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

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

            Cat pisana = new Cat();

            pisana.Eat();
            pisana.Meow();
        }
Beispiel #4
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());
        }
Beispiel #5
0
        static void Main(string[] args)
        {
            Dog dog = new Dog();

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

            Cat cat = new Cat();

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

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

            var cat = new Cat();

            cat.Eat();
            cat.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 #8
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)
        {
            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)
        {
            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 #11
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();
        }
Beispiel #12
0
        static void Main(string[] args)
        {
            Dog dog = new Dog();

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

            Puppy bo = new Puppy();

            bo.Eat();
            bo.Weep();

            Cat maca = new Cat();

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

            animal.Eat();

            Dog dog = new Dog();

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

            Puppy puppy = new Puppy();

            puppy.Weep();
            puppy.Bark();
            puppy.Eat();
        }
        public void Run()
        {
            Puppy puppy = new Puppy();

            puppy.Eat();
            puppy.Bark();
            puppy.Weep();
            Console.WriteLine();
            Dog dog = new Dog();

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

            Cat cat = new Cat();

            cat.Eat();
            cat.Meow();
        }