File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Liskov Substitution Principle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Liskov Substitution Principle" Watch "Liskov Substitution Principle" New topic

Liskov Substitution Principle

Sania Marsh
Ranch Hand

Joined: Jul 12, 2004
Posts: 469
Hi, is there anyone here who can explain and answer some questions on LSP?

I keep trying to read about it on the internet, but it doesn't make much sence..
I guess I want someone to try and explain it before I ask the questions, chances are I'm just understanding it wrong, so don't want to confuse with my questions.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Yes, I'm sure there are a number of people here who could help you - including me...

But I doubt I could explain it any better than Uncle Bob:

If that article leaves any questions open, on with it!

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: Liskov Substitution Principle
It's not a secret anymore!