Discussion Forum : Objects And Classes
Question -

Which of the following statements is correct?

Options:
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: Option B



Submit Your Solution Below and Earn Points !
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *