ExamVeda
Login
Home
Constructors and Destructors in C plus plus
?

What is the process of hiding the implementation details of a class and showing only the necessary features to the outside world called in C++?

Answer & Solution
Correct Answer: Option A
Abstraction in C++ refers to the process of hiding the implementation details of a class and exposing only the essential features to the outside world.

It allows the user to interact with an object without knowing the internal complexity, making the code cleaner, modular, and easier to maintain.

Why other options are incorrect:

Polymorphism deals with using the same function or operator in different ways.

Encapsulation is about wrapping data and functions together into a single unit (class).

Inheritance allows one class to acquire the properties of another.

Therefore, the correct answer is Abstraction.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Sanket Shingade
Sanket Shingade 10 months ago
I thought its answer might be Abstraction.