Write the syntax and example for default constructor
Answers
Answered by
68
Explanation:
In both Java and C#, a "default constructor" refers to a nullary constructor that is automatically generated by the compiler if no constructors have been defined for the class. The default constructor implicitly calls the superclass's nullary constructor, then executes an empty body
Answered by
4
Answer:
If you don't implement any constructor in your class, the Java compiler inserts default constructor into your code on your behalf. You will not ...
Explanation:
plz mark me as brainilist and thank to my answer and follow me ....plz....
Similar questions
English,
2 months ago
Geography,
2 months ago
Math,
2 months ago
English,
5 months ago
Science,
5 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago