Classes in C++ provide static encapsulation of objects by generating code which contains specific knowledge about the internals of encapsulated objects. Static encapsulation occurs at compile time and therefore cannot directly support the evolution of objects since recompilation of source code is required if the internal layout changes. This also prohibits the use of distributed or persistent objects without first ensuring that the internal representations of the objects match the ones in the compiled code
1.The wrapping up of data and member function into a single unit is called encapsulation.2.The data is not accessible to the outside world and only those functions which are wrapped into a class can access it.
According to me encapsulation is the process in which we can collect the data members and functions in one place or we can say that to encapsulate the related things.