The Support Kit: BObject

Derived from: none

Declared in: <support/Object.h>


Overview

BObject is the root class of the inheritance hierarchy. All Be classes (with just a handful of significant exceptions) are derived from it.

The primary reason for a single, shared base class is to provide common functionality to all objects. Currently, the BObject class is empty (except for its constructor and destructor), so there's no significant functionality to report. Subsequent releases will probably introduce new functions to the class; in anticipation of this, it's suggested that the classes you design derive from BObject (if no other Be class is a fit base).

In addition, when all objects are derived from BObject, the class can provide a generic type classification (BObject *) that simply means "an object." This can be a useful substitute for type void *.


Constructor and Destructor


BObject()

      BObject(void)

Does nothing. Because the BObject class has no data members to initialize, the BObject constructor is empty.


~BObject()

      virtual ~BObject(void)

Does nothing. Because the BObject class doesn't declare any data members, the BObject destructor has nothing to free.




The Be Book, HTML Edition, for Developer Release 8 of the Be Operating System.

Copyright © 1996 Be, Inc. All rights reserved.

Be, the Be logo, BeBox, BeOS, BeWare, and GeekPort are trademarks of Be, Inc.

Last modified September 6, 1996.