| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Clean Object Class Design -- Circle/Ellipse
>> >What does one gain by deriving Integer from Rational?
>>
>> What does one gain by not deriving integer from Rational? What does one
>> lose? How does one's decision affect integer values in the least --
>> including their subtype/supertype relationships with other numeric types?
>>
>This one is easy. Take a look at the Smalltalk Number classes. Integer
>and Real inherit from Number. Try inheriting Integer from Real and see
>what a mess you've made.
I have no doubt that Smalltalk makes a mess of it.
>A few decades of experience have given us the answer. Back to you guys
>to figure out the correct theory :-)
Date already did. Hadn't you noticed? Received on Sat Aug 18 2001 - 23:03:09 CDT
![]() |
![]() |