![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 statements is correct? |
A. | Data items in a class must be private. |
B. | Both data and functions can be either private or public. |
C. | Member functions of a class must be private. |
D. | Constructor of a class cannot be private. |
Answer» B. Both data and functions can be either private or public. |
View all MCQs in
Object Oriented Programming with C++ (OOP in C++)No comments yet