codeWord - Thoughts on Software
Friday, November 28, 2003
Re: Polymorphism
i think u forgot that the vector is holding Base* .. so *g will dereference to a Base* .. hence got to use (*g)->pr();
I think it's time for me to get an eye checkup.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment