Question: 8. How can the Fragile Base Class Problem be resolved? a) Using interfaces (if they are supported) instead of base classes. b) Using more composition
8. How can the Fragile Base Class Problem be resolved?
a) Using interfaces (if they are supported) instead of base classes.
b) Using more composition and less inheritance.
c) Making some base class methods final in order to preserve integrity.
d) Creating base classes with only abstract methods and no data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
