class inheritance in CVS

Originally posted on 2005.11.01:

I've committed class inheritance to CVS over the weekend - it's looking good.

qore now supports multiple inheritance with the ability to call base class constructors with custom arguments in subclasses (with a c++-like syntax), override base class constructor arguments from higher-level base classes, and call base class methods overridden by subclasses (from within a subclass).

Base class constructors, destructors, and copy methods are also called when appropriate for subclasses.

You can also mix user and system classes in your inheritance trees.

The code is in cvs along with a new example script: examples/inherit.q


Posted by David Nichols 2005-12-09