Which SOLID principle suggests that a derived class must be substitutable for its base class?
- Dependency Inversion Principle
- Liskov Substitution Principle
- Open/Closed Principle
- Single Responsibility Principle
The Liskov Substitution Principle (LSP) is the SOLID principle that suggests that a derived class must be substitutable for its base class without affecting the correctness of the program. It ensures that inheritance and polymorphism are used correctly.
Loading...
Related Quiz
- The _____ prototyping model involves creating a series of disposable models with each one being built on the feedback received from the previous one.
- In Object-Oriented Programming, the concept of _______ allows an object to take on multiple forms.
- The process of tracing and identifying the origin of requirements is facilitated by the use of a __________ matrix.
- What challenges might a development team face when implementing pair programming as a code review technique?
- What does the acronym SDLC stand for in the context of software development?