Posted by Jon on December 17, 2001 at 16:09:31:
I have a question if anyone has a good answer I'd appreciate it. On the homework on problem number 24 there is a pointer of the main base object type (Base) pointing to an E object. On line 10 polymorphism is invoked and the call to the function G() binds.
My question is basicly does because this is a pure virtual function with no implementation in Base does that make it bind to the right one without trying to bind to the D layer first?
Is that the reason that it binds the way it does? and is that the way the binding in that situation works?
Post a Followup