1.

What is Encapsulation in Java? Explain

Answer»

Encapsulation is one of the FOUR OOP concepts. It is a way of wrapping variables and code on data as a SINGLE unit. The class variables are HIDDEN from other classes, and can be accessed only through their current class. Therefore, this method is also called data hiding.



Discussion

No Comment Found