Question OOP-CTOR-0032
EasyWhat must a constructor's name be in C++ and Java?
- A.
The same as the class's name
- B.
init
- C.
Sign up free to see the answer and a step-by-step explanation.
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 must a constructor's name be in C++ and Java?
The same as the class's name
init
Sign up free to see the answer and a step-by-step explanation.
Any name the programmer chooses
constructor