Writing the Code

Virtual Methods

The header files in dkit/3.5/include contain prototypes for virtual methods. There are two kinds of virtual methods: pure and non-pure.

Pure Virtual Methods

Pure virtual methods begin with the word "virtual" and end with "= 0;". For example:

virtual void copy(const DK_Tool *other) = 0;
A pure virtual method has no implementation. Therefore, if you include a header file in your tool, you must write code for all of its pure virtual methods. If you don't, your tool will not compile properly.

Non-pure Virtual Methods

Non-pure virtual methods begin with the word "virtual" but are not set to zero. For example:

virtual Boolval IsPackageable(void) const;
You can write code to override these methods if desired. If you do not, the default implementation will be used.

Pure Virtual Methods
Non-pure Virtual Methods

SOFTIMAGE Eddie 3.5 - 10 JAN 1997