Monday, August 10, 2009
About function
One important point to remember is that we must access virtual functions through the use of a pointer declared as pointer to the base class.Why can't we use the object name(wiht the dot operater) the same war as any other member function to call the virtual functions?we can,but member,runtime polymorphism is archeived only when a virtual function is accessed through pointer to the base class.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment