Object-Oriented Programming · Question 20 · Easy

Object-Oriented Programming question 20

Which OOP concept means exposing only the essential features of an object (what it does) while hiding the implementation details (how it does it)?

  1. Abstraction
  2. Inheritance
  3. Polymorphism
  4. Instantiation
Answer and explanation

Answer: A. Abstraction

Explanation: Abstraction shows a simplified interface, such as a 'withdraw' method, while hiding how it works. Abstract classes and interfaces are the usual tools for it.

Previous: Creating an object of a class, for example with new Student() in Java, is… · Next: What is the output of the following C++ program?

Practise object-oriented programming

Try a fresh set of object-oriented programming questions with an explanation after every answer, free and without signing up: Object-Oriented Programming practice. Or sit a full placement mock test.

More object-oriented programming questions

More technical & programming practice

DBMS · SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge