Ask Question
10 May, 06:35

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

+4
Answers (1)
  1. 10 May, 06:59
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers