I have 3 constructors. One default constructor, one constructor with 1 parameter, and one constructor with 4 parameters.
I am trying to define 5 objects. The d1 and d2 run the default constructor, d3 and d4 run the second constructor, and d5 runs the 5th constructor.
However, when i run the code, only d1, d2, and d3 work. Is this how constructors are supposed to work?
How did you detect that only those constructor are running? Show your code.
hey there,
Let me see your code :)