Re: php 5 classes: public, protected and private
- From: "Tony Marston" <tony@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 2 Dec 2006 12:02:48 -0000
"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message
news:WfCdnZi7SJhguO3YnZ2dnUVZ_u6dnZ2d@xxxxxxxxxxxxxx
Michael Fesser wrote:
.oO(Tony Marston)
That just tells me what interfaces ARE, but it certainly does not say
that interfaces are REQUIRED. It is possible to define a class method and
access it directly WITHOUT going through an interface, therefore an
interface IS NOT NECESSARY.
Forget it. Obviously you haven't understood what interfaces in PHP are
used for and what you can do/ensure with them. Just an example: Without
these interfaces it wouldn't be possible to use 'foreach' to iterate
over any arbitrary object:
foreach ($directory as $file) {...}
foreach ($resultSet as $record) {...}
Micha
Micha,
Tony is just a troll who is beyond stupid. He can't even understand the
"experts" he quotes. They contradict what he says, but he can't see that.
They also contradict what you say, and you can't see that.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
.
- References:
- Re: php 5 classes: public, protected and private
- From: Tony Marston
- Re: php 5 classes: public, protected and private
- From: Michael Fesser
- Re: php 5 classes: public, protected and private
- From: Tony Marston
- Re: php 5 classes: public, protected and private
- From: Michael Fesser
- Re: php 5 classes: public, protected and private
- From: Jerry Stuckle
- Re: php 5 classes: public, protected and private
- Prev by Date: Re: php 5 classes: public, protected and private
- Next by Date: Re: php 5 classes: public, protected and private
- Previous by thread: Re: php 5 classes: public, protected and private
- Next by thread: Re: php 5 classes: public, protected and private
- Index(es):
Relevant Pages
|