Using System.out.println statement without knowing the internal coding. The above is example of encapsulation
Answers
Answered by
0
Every Java class is an example of encapsulation because we write everything within the class only that binds variables and methods together and hides their complexity from other classes. Another example of encapsulation is a capsule. Basically, capsule encapsulates several combinations of medicine.
Similar questions