TITLE: requiring overridding of methods (Newsgroups: comp.lang.c++.moderated, 17 Apr 99) XXX: > Is there a way to require derived classes to implement certain functions > of the base class without making the base class an abstract object? KANZE: James.Kanze@dresdner-bank.com No. XXX: > If there's no way to have the compiler check, perhaps there's a way to > check at run type to maker sure it has been implemented? Perhaps the > clone() function could be implemented to detect if it's being called on a > specific object type? KANZE: It should be doable with rtti. Something along the lines of: if ( typeid( *this ) != typeid( MyClass ) ) throw FunctionNotOverriddenError() ;