What is the primary goal of abstraction in Object-Oriented Programming?

Practice this question from Quiz: OOPS Revision Sheet, with options and an explanation.

Question

What is the primary goal of abstraction in Object-Oriented Programming?

Option A

To bundle data and methods that operate on the data into a single unit.

Option B — Correct answer

To hide unnecessary implementation details and expose only essential features.

Abstraction focuses on hiding complexity and showing only the relevant parts of an object, simplifying its use.

Option C

To allow an object to take on many forms.

Option D

To enable a class to inherit properties and behaviors from another class.

Quiz: OOPS Revision Sheet

All questions · Previous question · Next question

Open on QuizMaker