Which class is super class of every class

When does compiler supply default constructor for class

Answer : If no constructors have been defined for the class then “default constructor” refers to a nullary constructor will be automatically generated by the compiler . The default constructor is also empty, meaning that it does nothing. A user defined constructor that takes no parameters is called a default constructor too.

Leave a Reply

Your email address will not be published. Required fields are marked *