can non member functions be made virtual in C++ ?

can non member functions be made virtual in C++ ?
No, unfortunately not.
but you can over-load them.
And I dunno, depending on the need, you may wrap in a functor (class that acts like a function) to get it done.
Which object or objects should control the dispatch?
Are you looking for multimethods?
Last edited on
Topic archived. No new replies allowed.