Select from following answers:
Show Correct Answer
- When our inheritance hierarchy represents an "is-a" relationship and not a "has-a" relationship.
- When we can reuse code from the base classes.
- When we need to apply the same class and methods to different data types.
- When we want to make global changes to derived classes by changing a base class.
- All Above
Asked In: Many Interviews |