Exemplo n.º 1
0
        static void Inherit()
        {
            //Father f1 = new Father("Khanal", "Raj");
            //f1.FirstName = "";
            //f1.LastName = "";
            Grandfather g1 = new Grandfather("Ram", "Khanal");
            Father      f1 = new Father("Khanal", "Raj");
            Son         s1 = new Son("Rahul", "Khanal");


            g1.Display();
            f1.Display();
            s1.Display();
        }