• Advertisement

Archived

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

do you have to redefine virtual functions?

This topic is 5527 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

lets say you make a class with a virtual function, and then inherit from it. do you have to rewrite the virtual function? or does it keep the class that you derived from''s function until you redefine it?

Share this post


Link to post
Share on other sites
Advertisement
It keeps it until you explicitely override it. Unless it is a pure virtual function, in which case you have to override it.

Share this post


Link to post
Share on other sites

  • Advertisement