Multiple choice

Consider the given statements. (1) OOP provides security to data using access specifiers. (2) OOP introduces the concept of classes for memory management. (3) OOP uses pointers to direct to a specified location.

Which of the given statements is/are the major advantage(s) of an object-oriented programming language?

  1. Only 1

  2. Only 1 and 3

  3. Only 1 and 2

  4. 1, 2 and 3

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

OOP provides data security through access specifiers (private, protected, public) and uses classes with constructors/destructors for better memory management. Pointers are not unique to OOP - they're a low-level feature present in procedural languages like C.