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
Social Sciences,
2 months ago
English,
2 months ago
Computer Science,
2 months ago
English,
4 months ago
Science,
4 months ago
Social Sciences,
10 months ago
Social Sciences,
10 months ago
Social Sciences,
10 months ago