Question

According to SOLID principles, the Liskov Substitution Principle (LS

  • P primarily focuses on:
A Objects in a program should be replaceable with instances of their subclasses without altering the correctness of the program
B Software entities (classes, modules, functions) should be open for extension but closed for modification
C A class should have only one reason to change, following a single responsibility
D Clients should not be forced to depend on interfaces they do not use
E Dependencies should be abstract, not concrete implementations
Practice Next

Relevant for Exams:

Hey! Ask a query