Encapsulation

Encapsulation is the process of combining data and functions into a single unit called class. Using the method of encapsulation, the programmer cannot directly access the data. 


Encapsulation clearly represents the ability to bundle related data and functionality within a single, autonomous entity called a class. 


Encapsulation helps by breaking a program down into small, self-contained entities.  



No comments:

Post a Comment

Caching is a technique used to store frequently accessed data in a temporary storage layer to improve system performance and reduce latency....