Which of the following refers to the wrapping of data and its functionality into a single individual entity?

Options

  • A. Modularity
  • B. Abstraction
  • C. Encapsulation
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. Encapsulation

Detailed Explanation

Explanation: Encapsulation is an OOP concept that combines data (attributes) and the methods that operate on that data into a single unit called a class. It also helps control access to data using access modifiers.