Object-oriented design and programming enhances the decomposition of a problem. Classes are the principal decomposition units. Therefore, a class is a module, or a decomposition unit. A class is also a type for object reference variables.
The first part of this chapter describes the basic structure of a class. The emphasis is on the static view of a program. The general structure of a function is also discussed. The second part of this chapter presents an introduction to data descriptions and construction of simple object-oriented programs.