A class is a collection of one or more objects. Each object within an object hierarchy possesses a parent object. A class represents an object and all its ancestors. Only the topmost object in an object hierarchy, called the root, has no parent object.