Ask Question
19 January, 18:16

What is the difference between the default constructor and the overloaded constructor?

+4
Answers (1)
  1. 19 January, 19:37
    0
    A default constructor is a constructor that present in the class by default with no parameters when we write a new constructor with parameters it is called overloaded constructor. There can be different overloaded constructors in the same class.

    The main difference between default constructor and overloaded constructor is that the default constructor does't have any parameters while the overloaded constructors have parameters.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the difference between the default constructor and the overloaded constructor? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers