English, asked by pmohan0608, 1 day ago

Which of the following statements describe the Liskov Substitution Principle of the SOLID object-oriented design
approach?​

Answers

Answered by robinthkral
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 suit89
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