Question OOP-CTOR-0023
EasyWhat is constructor overloading?
- A.
A constructor in a child class
- B.
A constructor that returns a value
- C.
Show answer and explanation
Answer: D
Objects can then be created in different ways, such as Box() and Box(5).
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Constructors and Destructors question
What is constructor overloading?
A constructor in a child class
A constructor that returns a value
Answer: D
Objects can then be created in different ways, such as Box() and Box(5).
Calling a constructor many times
Having several constructors with different parameter lists