Which of the following best describes the concept of abstraction in C++? 

  • Hiding complex reality while exposing only the necessary. 
  • Protecting data from unauthorized access. 
  • Using single inheritance. 
  • Creating multiple instances of an object.
Abstraction in C++ refers to the concept of hiding the complicated reality of an object while only exposing operations relevant for that object. This allows for simplifying complex systems by breaking them down into smaller, more manageable parts, enabling developers to focus on high-level functionalities.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *