I see your query, and this problem does not appear to be too difficult, so please check to see if you can solve it....
The phrase "overloading the default constructor" is non-sensical:
- Overloading refers to having multiple methods with the same name but different parameters lists.
- The default constructor is the no-argument constructor that the compiler generates for you if you don't specify any other constructor. It has no arguments by definition.
- Since overloading requires different parameter lists and the default constructor by definition only has one possible parameter list (the empty one), these two concepts don't interact in a meaningful way.
You can specify your own no-argument constructor and thus stop the compiler from generating the default constructor, but I would not call that "overloading the default constructor".