Ashoka Jayasekara wrote:
It compiles correctly after adding the default constructor to the Class A. Is it a must to define default constructor Explicitly when we are doing constructor overloading?
The compiler will create a default no-arg constructor, if you do not create any constructor. If you create a constructor, then you are responsible for all the constructors -- no default constructor will be created.
Henry