+ 5
please explain encapsulation in simple terms
thankyou
3 odpowiedzi
+ 2
I would refer C++ class' concept to answer this. Bringing together data members (data) and their associated methods (functions) in a single unit (class) is encapsulation.
It is one among those OOP concepts and C++ implement this beautifully.
+ 2
encapsulation means enclosing the things inside for them to be protected and also for them not to change.