I said that perhaps the object is of type parent. It doesn’t matter what type the variable is, if the *object * is a child, then the child implementation of the function will be called. That’s the whole point of virtual functions.
I said that perhaps the object is of type parent. It doesn’t matter what type the variable is, if the *object * is a child, then the child implementation of the function will be called. That’s the whole point of virtual functions.