Cover Data Structures and Algorithms with Object-Oriented Design Patterns in Java
next up previous contents index

Classes and Objects

A Java class encapsulates a set of values and a set of operations. The values are represented by the fields of the class and the operations by the methods of the class. In Java a class definition introduces a new type. The instances of a class type are called objects.


next up previous contents index

Bruno Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.