Abiturabyamu Anslem created a new article
3 yrs - Translate

ENCAPSULATION IN JAVA | #Encapsulation

ENCAPSULATION IN JAVA

ENCAPSULATION IN JAVA

Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. In encapsulation, the variables of a class will be hidden from other classes, and can be accessed only through the methods of their current class.

Install Palscity app