Esempio n. 1
0
        static void Main(string[] args)
        {
            Dogs dog = new Dogs();

            dog.Lay();
            dog.SayHi();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            // Student stu = new Student();
            // stu.printStudentName();
            // stu.doSomething();

            // IStudent muiz = new Student();
            // muiz.printName();

            // IStudent IStud = new Student();
            // IStud.printName();

            //for Abstract examples, create an instance of derived class and point to base class as a reference variable
            // Student student = new StudentA();
            // student.printFullName();

            // student.doSomething();

            Dogs dog = new Dogs();

            dog.dogs();

            Cats cat = new Cats();

            cat.cats();
        }
Esempio n. 3
0
        private static void Main(string[] args)
        {
            Dogs dog = new Dogs();

            dog.Attack();
            dog.SayHi();
            dog.Run();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Interfaces!");

            Dogs dog = new Dogs();

            dog.Rollover();
            dog.SayHi();
            dog.Run();
        }