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.
2.9k
0
Do you find this helpful?
17

Discussion

No comments yet