0 votes
in JAVA by
Explain encapsulation in Java.

1 Answer

0 votes
by

Explain encapsulation in Java.

Encapsulation is the process of wrapping variables and functions together into a single unit in order to hide the unnecessary details. The wrapped up entities are called classes in java. Encapsulation is also known as data hiding because it hides the underlying intricacies.

Related questions

0 votes
asked Oct 27, 2020 in JAVA by sharadyadav1986
+1 vote
asked Jul 27, 2021 in JAVA by SakshiSharma
...