0
Can someone give me an example code which interpret the encapsulation concept in Java please
2 Réponses
+ 1
You can go to code section of this app
Search the encapsulation in searchbar
Select the language "java"
For better results choose "most popular"
https://www.sololearn.com/learning/2162/
https://code.sololearn.com/cJ37hYFs4smY/?ref=app
+ 1
Encapsulation means simply combining data and methods of class into a single unit of block..
So any class is best example of Encapsulation in java.