Ejemplo n.º 1
0
    static void Main(string[] args)
    {
        AbstractBase obj = new Derived();

        obj.AbstractMethod();
        obj.PublicMethod();
    }
    static void Main()
    {
        //Base b = new Base();  Cannot have instance of an abstract class
        Derived d = new Derived();

        d.MethodWithImplementation();
        d.AbstractMethod();
    }