static void Main(string[] args) { baseClass obj1 = new subClass(); obj1.doSomething(); Console.ReadLine(); }