public static void Main(string[] args) { Console.WriteLine("Creating a BaseClass object"); BaseClass bc = new BaseClass(); Console.WriteLine("\nnow creating a SubClass object"); SubClass sc = new SubClass(); // Wait for user to acknowledge. Console.WriteLine("Press Enter to terminate..."); Console.Read(); }
public static void Main(string[] args) { Console.WriteLine("Creating a BaseClass object"); BaseClass bc = new BaseClass(); Console.WriteLine("\now creating a SubClass object"); SubClass sc = new SubClass(); // Wait for user to acknowledge. Console.WriteLine("Press Enter to terminate..."); Console.Read(); }
static void Main(string[] args) { System.Console.WriteLine("creating a BaseClass"); BaseClass bc = new BaseClass(); System.Console.WriteLine("Now creating a Subclass object (default)"); SubClass sc = new SubClass(); Console.WriteLine("\n Now creating SubClass object (int)"); SubClass sc2 = new SubClass(0); //Console.WriteLine("\t Constructing BaseClass"); }