+ 1
Can we make java program with two deafault constructor nd one parametrized constructor
2 Réponses
+ 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