This would then be subject to formal ballot and approval during 1998. Another quite basic principle of object-oriented design is to avoid exposing the private state of an object to the world. Earlier we talked about data abstraction, where a user-defined type is composed of data and operations on that data. Probably nothing good. Note that the Java language has no global variables, and similar usage to this example would involve static data defined in classes.
Data hiding is a simple but extremely important concept.
Without it, it is difficult to reason about the behavior of an object, given that its state can be arbitrarily changed at any point. All Rights Reserved. This newsletter may be further distributed provided that it is copied in its entirety, including the newsletter number at the top and the copyright and contact information at the bottom. Our Services Back to Home Page Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Throughout this document, when the Java trademark appears alone it is a reference to the Java programming language.