Which of the following statements related to C++ is FALSE?

2023

Which of the following statements related to C++ is FALSE?

  1. A.

    A member function can be defined as public.

  2. B.

    A member function can be defined inside the class.

  3. C.

    A member function cannot be defined as private.

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

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs