What is the use of a default constructor?
It is used for creating the object.
It is used for initializing fields of a class with default values.
A default constructor used for intializing all the values fields with 0's and all the reference fields with null values.
None of the above
it is used for initializing fields of a class with default values.
Though option 3 is closely matching to the answer but it is incorrect, since all value type fields are not initialized with zero. For example bool is a value type and whose default value is false .
Back To Top