22 Sin Ming Lane #06-76 Midview City Singapore 573969
+6593361596
jsypconsulting888@gmail.com

Forums

Deep Tech, Financial Markets, Fintech, Blockchain ICOs, ITSec, and High Value IT Projects

Encapsulation
 
Notifications
Clear all

Encapsulation


admin
(@admin)
Noble Member Admin
Joined: 3 years ago
Posts: 619
Topic starter  

Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction.

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. Therefore, it is also known as data hiding.


   
Quote
Share: