Reply to Re: Object Oriented PHP

Your name:

Reply:


Posted by Jerry Stuckle on 06/25/06 01:26

IchBin wrote:
> David Haynes wrote:
>
>> 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...
>>
>> -david-
>>
>
> Sorry I am new to PHP but use Java. My question is how can you have a
> OOP Language and not have polymorphic features. Sorry, I have not gotten
> up to par on PHP yet.
>
> Thanks in Advance...
> IchBin, Pocono Lake, Pa, USA http://weconsultants.awardspace.com
> __________________________________________________________________________
>
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor, Regular Guy (1952-)

PHP does have some polymorphic-like abilities, but that's because of the untyped
nature of the variables.

PHP is getting better in it's OO aspects, but I doubt it will ever be quite like
Java. There's just a basic difference between languages with typed and untyped
variables.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация