C# Should follow the C++ constructor logic, that when you call the constructor, base class constructors also get called. For Example:
So, the short answer is - you don't have to.Code:class bill { public bill() { Console.WriteLine("Bill Constructor Called"); } } class Bob : bill { public Bob() { Console.WriteLine("Bob Constructor Called"); } } //In a random Button click function: Bob Bobo = new Bob(); //causes this in the output window: Bill Constructor Called Bob Constructor Called :)
Bill




Reply With Quote