mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-12-01 11:37:15 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
7 lines
588 B
Markdown
7 lines
588 B
Markdown
# Encapsulation
|
|
|
|
Encapsulation is a fundamental concept in object-oriented programming where data and the methods that operate on that data are bundled together as a single unit. This unit, often a class, hides the internal state of the object from the outside world and only exposes a controlled interface for interacting with it. This protects the data from accidental modification and allows for easier maintenance and modification of the code.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Java - Encapsulation](https://www.tutorialspoint.com/java/java_encapsulation.htm) |