OO Concept: Liskov Substitution Principle
- From: howa <howachen@xxxxxxxxx>
- Date: Fri, 30 May 2008 07:17:12 -0700 (PDT)
Hi,
Just read an article talking about the LSP in term of OO design:
http://www.objectmentor.com/resources/articles/lsp.pdf
The article said Rectangle class should not be a superclass of Square
class.
Okay, so how you would design the Rectangle & Square class?
The article did not cover that, so what are your opinion?
Howard
.
- Follow-Ups:
- Re: OO Concept: Liskov Substitution Principle
- From: Lew
- Re: OO Concept: Liskov Substitution Principle
- From: Joshua Cranmer
- Re: OO Concept: Liskov Substitution Principle
- From: Wayne
- Re: OO Concept: Liskov Substitution Principle
- From: Daniel Pitts
- Re: OO Concept: Liskov Substitution Principle
- From: Tom Anderson
- Re: OO Concept: Liskov Substitution Principle
- Prev by Date: Re: debugging regexes
- Next by Date: Newbie Eclipse question: Exported jar file does nothing upon execution
- Previous by thread: WORA high performance
- Next by thread: Re: OO Concept: Liskov Substitution Principle
- Index(es):
Relevant Pages
|
|