Re: OOP versus Procedural/Functional [message #177631 is a reply to message #177629] |
Wed, 11 April 2012 17:18 |
Tim Streater
Messages: 328 Registered: September 2010
Karma:
|
Senior Member |
|
|
In article <jm4dnm$cj7$1(at)dont-email(dot)me>,
Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:
> On 4/11/2012 10:25 AM, Goran wrote:
>> On 11.4.2012 13:16, crankypuss wrote:
>>> I remember writing a Java application and trying to derive an actually
>>> useful string class from the garbage they had declared "final" and that
>>> was it for me and Java.
>>
>> Just for curiosity, which method you tried to override? Somehow i smell
>> a good reason for "final" :)
>
> Actually, I agree with Cranky on this one. I, too, have wanted to
> override the java String class and been frustrated by its 'final'
> attribute. I don't see why it couldn't have been created as non-final -
> and it would have been a lot more usable.
Somehow this reminds me of one of the Pascal pig's ears: that two
strings of different lengths were different types.
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
|
|
|