Which principle suggests that derived classes must be substitutable for their base classes?

  • Encapsulation
  • Abstraction
  • Inheritance
  • Polymorphism
The principle suggesting that derived classes must be substitutable for their base classes is "Polymorphism." It allows objects of derived classes to be used where objects of the base class are expected, enabling flexibility and extensibility in software design.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *