public static void Main(string[] args) { Derived d = new Derived(); d.FuncA(); //Derived.FuncA d.FuncB(); //Derived.FuncB Base a = d; a.FuncA(); //Base.FuncA a.FuncB(); //Derived.FuncB }
static void Main(string[] args) { Derived derived = new Derived(); }