DEV Community

Discussion on: Liskov Substitution Principle in 3 Minutes

Collapse
 
swarupkm profile image
Swarup Kumar Mahapatra

LSP also makes sure thatOpen Close principal is followed

Collapse
 
sketchydev profile image
Shane Booth

Although the two are related and support each other, it is possible to violate either of them while maintaining the other - have a look here softwareengineering.stackexchange.... for a worked example

Collapse
 
swarupkm profile image
Swarup Kumar Mahapatra

Thanks Shane.

That was a super big explanation and a helpful one.