Most voted "liskov-principle" questions
2 questions
Sort by count of
-
25
votes2
answers2094
viewsPrinciple of Liskov’s replacement
Liskov’s substitution principle says that if given types T and S being S subtype of T then S should be replaced by T. My understanding is that if I have an instance of S then I can use it in places…
-
5
votes0
answers75
viewsWhy should we prefer composition over inheritance?
Since the popularization of object orientation in the 90’s I hear that composition should be preferred before creating hierarchy of types. But perhaps the most important concept of object…
oop inheritance software-engineering composition liskov-principleasked 10 years, 6 months ago Maniero 444,682