function pointers + virtual
if a class created a pointer to one of it's virtual fuctions, will it still go to the inheriting class's definition of that function?
You can't create normal function pointers to class member functions, only 'pointers to member function'. To answer your question; yes they will call the implementation in the derived class.
only if the object calling it is infact a derived class type. AFAIK the function call should act "just as it should"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement