+ 1
Can we make java program with two deafault constructor nd one parametrized constructor
2 Answers
+ 3
No. Just like you have to have different parameters for overloaded methods, you have to have different parameters for overloaded constructors. Having 2 with no parameters would cause an error because it wouldnât know which one to call.
0
okkk thnxxxx