Which of the following statements describe the Liskov Substitution Principle of the SOLID object-oriented design
approach?
Answers
Answered by
33
Answer:
3 point out of 4
Explanation:
A class should only have one reason to change
Generally a class wouldn't make calls to external methods
Objects should have a singular purpose
Answered by
1
Liskov Substitution Principle
Definition:
Barbara Liskov first established the Liskov substitution principle, a specific formulation of a subtyping relation known as strong behavioral subtyping, in a 1988 conference keynote talk titled Data abstraction and hierarchy.
Explanation:
- Objects of a superclass should be interchangeable with objects of its subclasses without interrupting the application, according to the Liskov Substitution Principle (LSP).
- An object (such as a class) and a sub-object (such as a class that extends the first class) must be interchangeable without breaking the programme, according to an object-oriented programming paradigm.
- The LSP asserts, at a high level, that in an object-oriented programme, we should not disrupt the programme if we replace a superclass object reference with an object of any of its subclasses.
To know more about object oriented programming, here
https://brainly.in/question/3783924?msp_poc_exp=2
#SPJ2
Similar questions
Social Sciences,
17 hours ago
History,
1 day ago
English,
1 day ago
Math,
8 months ago
Math,
8 months ago