user image

Gagan Mishra

Job Interview Skills
English
2 years ago

Question 593. I Have 3 Overloaded Constructors In My Class. In Order To Avoid Making Instance Of The Class Do I Need To Make All Constructors To Private?

user image

Abhishek Mishra

2 years ago

If possible, chain the constructors together so that the default for any particular value is only specified in one place - or use a constant. That way you get consistency.

Recent Doubts

Close [x]