Jump to content
  • Advertisement

Archived

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

Lestat3D

Abstract function calls

This topic is 6024 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
You ar talking about virtual functions but I''m talking about PURE VIRTUAL functions, just look at that ''=0'' after the function.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!