You are here: Re: php 5 classes: public, protected and private « PHP Programming Language « IT news, forums, messages
Re: php 5 classes: public, protected and private

Posted by Jerry Stuckle on 12/07/06 12:02

Tony Marston wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:uKCdnemKmvXicOvYnZ2dnUVZ_oOdnZ2d@comcast.com...
>
>>Tony Marston wrote:
>>
>>>"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
>>>news:heudnY0tgPFj7-jYnZ2dnUVZ_rCdnZ2d@comcast.com...
>>>
>>>
>>>>Tony Marston wrote:
>>>>
>>>>
>>>>>"Michael Fesser" <netizen@gmx.de> wrote in message
>>>>>news:4ud8n2dcgrj80p0c9dske38l4othi3c631@4ax.com...
>
> <snip>
>
>>>>>I am not wrong. I have made two simple statements that you cannot
>>>>>disprove:
>>>>>
>>>>>(a) In PHP interfaces are not necessary.
>>>>>(b) Enapsulation does not mean that all variables must be declared
>>>>>private or protected.
>>>>>
>>>>>What's so difficult to understand about that?
>>>>>
>>>>
>>>>You're wrong because:
>>>>
>>>>(a) Interfaces, as defined in OO terms (which is what we were
>>>>discussing, and PHP is an OO language) are necessary.
>>>
>>>In PHP interfaces are NOT necessary.
>>>
>>>
>>>>They are how you interact with the object, and
>>>
>>>Wrong. You interact with an object by calling an object's method. The
>>>fact that a method may have an optional interface declaration has nothing
>>>to do with it.
>>
>>And in OO terms that is the INTERFACE! But you don't know anything about
>>OO, that's obvious.
>
>
> You are confusing the term inetrface (as in Application Programming
> Interface or API) with the construct that uses the word "interface" and
> "implements". An API is simply a function name with a list of arguments,
> while interfaces are hings which exist in addition to the function
> definition.
>

You really don't know anything about OO, do you, Tony. Not even the
most basic terminology.

> It is a simple fact that I can access an object's method by using the
> function definition (API) and NOT tghe piece of code which contains the word
> "interface".
>

Stupid troll doesn't understand basic OO.

> The terms API and interface in OO terminology do not mean the same thing.
>

You really don't know OO terminology, Tony. I suggest you at least read
up on the basics of OO - from a RESPECTED SOURCE, not your favorite blog
entries.

You only continue to make a huge fool of yourself. But you're only a
stupid troll, so that's only to be expected.

>
>>>>(b) Proper encapsulation means that all variables are defined as
>>>>private,
>>>
>>>
>>>Wrong. Encapsulation simply means putting all the data for an object, and
>>>the operations which act upon that data, into a single class. There is no
>>>requirement to make all the data private, as there is no requirement to
>>>make any methods private.
>>
>>Wrong again, Troll Tony.
>
>
> My definition of encapsulation is not wrong What is your definition?
>
> I still stick to my original statements:
>
> (a) In PHP interfaces are not necessary.
> (b) Encapsulation does not mean that all variables must be declared private
> or protected.
>

You really don't understand even the most basic elements of OO
programming, Tony. You're just a troll.

Read from RESPECTED RESOURCES. Then open your mouth. You're only
making a bigger fool of yourself, and people are laughing at you.

What little credibility you ever had in the newsgroup is virtually all
gone now. You've made too much of an ass of yourself for anyone to take
you seriously.

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

 

Navigation:

[Reply to this 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

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