Q. Which of the following statements is correct? (Solved)
1. Data items in a class must be private.
2. Both data and functions can be either private or public.
3. Member functions of a class must be private.
4. Constructor of a class cannot be private.
- b. Both data and functions can be either private or public.