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

Golang: Http POST Request with JSON Body example

Go standard library comes with "net/http" package which has excellent support for HTTP Client and Server.   In order to post JSON ...