Hindi, asked by prakyath59, 4 months ago

Write the syntax and example for default constructor​

Answers

Answered by ItzCaptonMack
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 Dipu6256
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