Q) What is the purpose of a default constructor? The default constructor is used to provide the default values to the object like 0, null, etc. , depending on the type.
Q) What is the purpose of a default constructor? The default constructor is used to provide the default values to the object like 0, null, etc. , depending on the type.