Q)

A) Data items in a class must be private.

B) Constructor of a class cannot be private.

C) Member functions of a class must be private.

D) Both data and functions can be either private or public.

Correct Answer: Both data and functions can be either private or public.
Explanation: Both data and functions can be either private or public.