Beispiel #1
0
        static void MainInherit(string[] args)
        {
            Console.WriteLine("Inheritence");

            ChildClass ccObj = new ChildClass();

            NewVarExp();
            //call to base class
            //ccObj.BaseMul(3,4);

            // ccObj.Diplay();

            // BaseClass bbObj = new  ChildClass();

            //sint result=ccObj.AddMul(2, 3);
            // result = bbObj.AddMul(5, 2);
            //result = bbObj.BaseMul(5,2);
            //Console.WriteLine(result);
            Console.ReadKey();
        }
Beispiel #2
0
 static void NewVarExp()
 {
     ChildClass ccObj = new ChildClass();
     BaseClass  bbObj = new  ChildClass();
 }