
C H A P T E R
1
ObjectWindows overview
This chapter presents an overview of the ObjectWindows 2.0 hierarchy It.
also describes the basic groupings of the ObjectWindows 2.0 classes,
explains how each class fits together with the others, and refers you to
specific chapters for more detailed information about how to use each class.
W rking with class hierarchieso
This section describes some of the basic properties of classes, focusing
specifically on ObjectWindows classes. It covers the following topics:
■ What you can do with a class
■ Inheriting members
■ T pes of member functionsy
There are three basic things you can do with a class:
Using a class
■ Derive a new class from it
■ Add its behavior to that of another class
■ Create an instance of it (instantiate it)
T change or add behavior to a class, you derive a new class from it:o
Deriving new
class TNewWindow : public TWindow
classes
{
public:
TNewWindow(...);
// ...
};
When you derive a new class, you can do three things:
■ Add new data members
■ Add new member functions
■ Override inherited member functions
Chapter 1, ObjectWindows overview
17