Ask Question

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

+5
Answers (1)
  1. 14 November, 20:33
    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?
Find an answer to your question 👍 “What is the difference between the default constructor and the overloaded constructor? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers