22 Sin Ming Lane #06-76 Midview City Singapore 573969
+6569961364
info@jsypconsulting.com

Forum

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

Encapsulation  

  RSS

admin
(@admin)
Member Admin
Joined: 6 months ago
Posts: 391
21/11/2019 6:17 pm  

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:

Please Login or Register