selecting which implementation of an operation (method or function) to call
selecting which implementation of an operation (method or function) to call at compile time
apply()
are compiled so that for any class that inherits from the class Base, the function calls the proper methodBase*
or a Base&
, the apply()
functions must call the Base methods for Base objects, and the Derived methods for Derived objectsapply()
) can only call class Base methods