Answers

Question and Answer:

  Home  C++ Template

⟩ What is Encapsulation in C++?

The wrapping up of data and member function into an object is called encapsulation. The data is not accessible to the outside world and only those functions which are wrapped into the object can access it. An encapsulated objects act as a "black box" for other parts of the program which interact with it. They provide a service, but the calling objects do not need to know the details how the service is accomplished.

 195 views

More Questions for you: