|
Posted by Tony Marston on 06/25/06 13:43
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:l7mdnYQJ5OPlEwPZnZ2dnUVZ_q-dnZ2d@comcast.com...
> Tony Marston wrote:
>> "David Haynes" <david.haynes2@sympatico.ca> wrote in message
>> news:Tvkng.22537$oG2.21662@fe26.usenetserver.com...
>>
>>>Tony Marston wrote:
>>>
>>>>"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
>>>>
>>>>>Actually, things like private declarations are very important. They
>>>>>are unimportant only to those who don't understand OO programming - or
>>>>>those who are sloppy in their implementations.
>>>>
>>>>You don't *need* private declarations. Code will work just as well
>>>>without them.
>>>>
>>>
>>>What the heck! Let's just throw away multiply and divide. We don't *need*
>>>them. We can just use add and subtract.
>>>
>>>Heck! Why do we need subtract? We can just add negative values.
>>>
>>>Hey! Assembler works well without private declarations. Let's just pitch
>>>PHP all together.
>>>
>>>The point is that constructs are added to language to assist in the
>>>functionality and maintainability of programs written in that language.
>>>The introduction of private and protected adds to the maintainability
>>>both through its inherent protection capabilities and its clarity of
>>>intent for the maintainer.
>>>
>>>Now if PHP could just get polymorphism...
>>
>>
>> OOP with PHP already has polymorphism. You obviously don't know what
>> polymorphism means.
>>
>
> No, Tony, you really don't know what polymorphism is, do you?
The simplest definition of polymorphism is "same interface, different
implementation". This means that different objects can share the same
interface but which do different things. What do you think it means?
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|