Hi, Since I'm a beginner I've 2 doubts about 'Parameterized Constructors'.
1)Can I create an array of objects using a parameterized constructor?
2)Is a class can have only one parameterized constructor?
Appreciate y'all's help. Thanks!
1)Can I create an array of objects using a parameterized constructor? |
Yes
2)Is a class can have only one parameterized constructor? |
No, as long as the non-defaulted parameters are different in each constructor
Last edited on