Home / C++ Programming / Objects and Classes :: Discussion

Discussion :: Objects and Classes

  1. Which of the following statements is correct?

  2. 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.

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment