Multiple choice

Which of the following statements is incorrect about classes in object oriented programming?

  1. A class is a user defined data-type.

  2. A class provides mechanism to hold data and function at one place.

  3. It incorporates security in programming.

  4. The member of a class can be accessed by any function.

  5. A class is a logical concept. In real world, objects exist physically.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All the above four, except this option, are correct about a class.