DEV Community

hema latha
hema latha

Posted on

What is Encapsulation ?

in java Encapsulation is a fundamental principle of object oriented programming
that allow an object to hide its data and method from other part of program
Encapsulation combination of data hiding and abstraction
Encapsulation is a data protection.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more