Encapsulation, inheritance and polymorphism

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Jul 17 15:39:53 EDT 2012


On 17/07/2012 20:29, Lipska the Kat wrote:
> On 17/07/12 18:07, Terry Reedy wrote:
>> On 7/17/2012 10:23 AM, Lipska the Kat wrote:
>>
>>> Well 'type-bondage' is a strange way of thinking about compile time type
>>> checking and making code easier to read (and therefor debug
>>
>
> snip
>
>>
>> How easy was it to write max, or a universal sort in Java?
>>
> Well java.lang.Math.max() (or min() depending on what you want) might do
> it and as for sorting ... java.utils.Collections.sort will sort anything
> that implements the java.util.Comparable interface. All the standard
> numerical classes implement Comparable by default so there is nothing to
> do really.
>
> Lipska
>

I would like to spend more time on this thread, but unfortunately the 44 
ton artic carrying "Java in a Nutshell Volume 1 Part 1 Chapter 1 
Paragraph 1 Sentence 1" has just arrived outside my abode and needs 
unloading :-)

-- 
Cheers.

Mark Lawrence.






More information about the Python-list mailing list