Objectives : Encapsulation:
- An encapsulated object resembles a container, which hides the
objects from the clients.
- The client invokes the interface methods of the object, which
manifests the data
- Through encapsulation, an object tenders some services to the
clients. These services when active provide an interface to the
objects.
|