Question #561

What are advantage in applying encapsulation feature when writing a Java program?

Expert's answer

Encapsulation allows us to hide the proprietary information of the object within a class. You can clearly distinguish which information about the objects of your class will be visible to the user, and which will be hidden and through which methods the user will work with hidden information.
LATEST TUTORIALS
APPROVED BY CLIENTS