mention the disadvantage of default constructor?
Answers
Answered by
9
Answer:
The drawback of a default constructor is that every instance of the class will be initialized to the same values and it is not possible to initialize each instance of the class to different values. The default constructor initializes: All numeric fields in the class to zero. All string and object fields to null.
Explanation:
Answered by
3
The drawback of a default constructor is that every instance of the class will be initialized to the same values and it is not possible to initialize each instance of the class to different values. The default constructor initializes: All numeric fields in the class to zero. All string and object fields to null.
PLZ MARK ME AS BRAINLIEST!!!!!!!!!!!!!
Similar questions
India Languages,
2 months ago
English,
2 months ago
Hindi,
2 months ago
English,
5 months ago
Math,
5 months ago
India Languages,
11 months ago
Physics,
11 months ago