![Mcqmate logo](https://mcqmate.com/public/images/logos/logo-black.png)
![Mcqmate logo](https://mcqmate.com/public/images/logos/logo-white.png)
McqMate
Q. |
Which of the following statement is correct? |
A. | A constructor has the same name as the class in which it is present. |
B. | A constructor has a different name than the class in which it is present. |
C. | A constructor always returns an integer. |
D. | A constructor cannot be overloaded. |
Answer» A. A constructor has the same name as the class in which it is present. |
View all MCQs in
Object Oriented Programming with C++ (OOP in C++)No comments yet