Which of the following statements related to C++ is FALSE?
2023
Which of the following statements related to C++ is FALSE?
- A.
A member function can be defined as public.
- B.
A member function can be defined inside the class.
- C.
A member function cannot be defined as private.
- D.
A member function can be defined outside the class.
Attempted by 203 students.
Show answer & explanation
Correct answer: C
In C++, member functions can be declared as private, protected, or public. Hence, statement 3 is false.
A video solution is available for this question — log in and enroll to watch it.