Sybase 7.5 manual Defining classes

Models: 7.5

1 288
Download 288 pages 28.98 Kb
Page 27
Image 27

Chapter 2 Building an Object-Oriented Model

Defining classes

A class is a description of a set of objects that have a similar structure and behavior, and share the same attributes, operations, relationships, and semantics. A class usually implements one or more interfaces.

Classes are the main building blocks of an OOM. Classes, and the relationships that you create between them, form the basic structure of an OOM. Typically, classes represent either real, abstract or conceptual things that together make a whole or a part of a particular problem or system.

The following example shows the class Printer with its attributes and operations.

17

Page 27
Image 27
Sybase 7.5 manual Defining classes