how many constructors does a class have ??
Answers
Answered by
0
Answer:
You can define as many constructors as you need. When a Java class contains multiple constructors, we say that the constructor is overloaded (comes in multiple versions). This is what constructor overloading means, that a Java class contains multiple constructors. The Java class above contains two constructors.
Explanation:
PLEASE MARK ME AS BRAIN LIST .
Similar questions
Social Sciences,
3 months ago
Social Sciences,
3 months ago
Chemistry,
8 months ago
Math,
8 months ago
Biology,
1 year ago