References To Derived Types In C++
A
base class reference can be used to
refer to an object to a derived class. The most common application of this is
found in function parameters . A base class reference can receive object of the
base class as well as any other type derived form that base.
Fig: References To Derived Types In C++ |
No comments:
Post a Comment