|
Share this post! |
| Vote this! |
|
Before getting into this section, it is recommended that you have a proper understanding of pointers and class inheritance.
| Statement: |
Explained in: |
|
int a::b(c) {};
|
Classes
|
|
a->b
|
Pointers
|
|
class a: public b;
|
Friendship and inheritance
|
Pointers to base class
One of the key features of derived classes is that a pointer to a
derived class is type-compatible with a pointer to its base class.
Polymorphism is the art of taking advantage of this simple but powerful
and versatile feature, that brings Object Oriented Methodologies to its
full potential.
more...
Highly
Recommended Reading After Above
C++
0 comments:
Post a Comment