Archived

This topic is now archived and is closed to further replies.

Lestat3D

Abstract function calls

Recommended Posts

Hi, how can I declare abstract functions in c++, I think it's on this way: virtual Func(args) = 0; isn't it? Though I've declared this class: class CClassName { public: virtual void Func(LPVOID Arg) = 0; ... }; How can I know in runtime whether this function where declared in any descendant class? Edited by - felisandria on February 21, 2002 3:44:14 PM

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You always know at runtime that it is because your program will not compile unless it IS overriden in a descendant class.

Share this post


Link to post
Share on other sites