Re: Mixing OO and DB
Date: Sun, 24 Feb 2008 09:35:44 -0600
I think this is a 2500 year old argument that you and I are not going to resolve. Suffice it to say that I disagree. To me (2,2,3) *represents* a circle, but is not in and of itself a circle.
> An instance of a mutable circle class is not an instance
> of a mutable ellipse class. That's where the problem
Mutability is one kind or property that is not substitutable accross circle/ellipse relationship. I'm sure we could find others. I agree that if you exclude all the unsubstitutable properties, you can make class circle a subtype of class ellipse. On the other hand, if you exclude all the unsubstitutable properties you can make any type S a subtype for any type T.
-- Robert C. Martin (Uncle Bob) | email: unclebob_at_objectmentor.com Object Mentor Inc. | blog: www.butunclebob.com The Agile Transition Experts | web: www.objectmentor.com 800-338-6716 |Received on Sun Feb 24 2008 - 16:35:44 CET