Beispiel #1
0
        static void Main(string[] args)
        {
            ////object initial
            Program objP = new Program();

            //array input
            objP.take_input();
            //array_list
            Student objS = new Student();

            ///inheritence
            objS.set_info();
            objS.print_info();

            ///Polymorphism
            Base objBase;

            objBase = new Base();
            objBase.Show();//    Output ----> Show From Base Class.

            objBase = new Derived();
            objBase.Show();//Output--> Show From Derived Class.

            objBase = new SecondDerived();
            objBase.Show();//Output---> Show From Second Derived Class.
        }