Chapt 12. Virtual Functions

12.1. Base class pointers to derived objects: (Learn C++)

base class pointer to derived objects, can only access function of base class version. So it cannot see the derived class‘s overridden functions inherited from base class itself. It can be handled by virtual function.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s