""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wed, May 3, 2006 9:17 am, Jochem Maas wrote:
>> BUT there is a fourth form of polymorphism - one I would argue if the
>> most common form when speaking about polymorphism with respect to
>> programming,
>> namely t
On Wed, May 3, 2006 9:17 am, Jochem Maas wrote:
> BUT there is a fourth form of polymorphism - one I would argue if the
> most common form when speaking about polymorphism with respect to
> programming,
> namely the ability to derive a subclass from more than one base class
> (simutaneously),
> thi
On Wed, 2006-05-03 at 10:59, Jochem Maas wrote:
> Dave Goodchild wrote:
> > That is not polymorphism - that is multiple inheritance. Java can't do
>
> well that clears up my misuse of the terminology!
>
> > that either, and uses a much cleaner method - interfaces. And interfaces
> > are support
Not multiple inheritance. Inheritance. Not multiple orgasm. Intercourse.
On 03/05/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
Dave Goodchild wrote:
> That is not polymorphism - that is multiple inheritance. Java can't do
well that clears up my misuse of the terminology!
> that either, and uses
Dave Goodchild wrote:
That is not polymorphism - that is multiple inheritance. Java can't do
well that clears up my misuse of the terminology!
that either, and uses a much cleaner method - interfaces. And interfaces
are supported in php5. So php does allow it. Not polymorphism - multiple
n
That is not polymorphism - that is multiple inheritance. Java can't do that
either, and uses a much cleaner method - interfaces. And interfaces are
supported in php5. So php does allow it. Not polymorphism - multiple
inheritance. Not multiple inheritance - interfaces.
On 03/05/06, Jochem Maas <[E
Original Message
On Fri, 2006-03-24 at 10:50, Jochem Maas wrote:
Pham Huu Le Quoc Phuc wrote:
> I want to execute polymorphism.
>
I said (a long time ago):
...BUT the OP didn't ask about polymorphism and php
doesn't support it at all anyway.
Rob replied (also quite a lon
On Fri, 2006-03-24 at 10:50, Jochem Maas wrote:
> Pham Huu Le Quoc Phuc wrote:
> > I want to execute polymorphism.
> >
>
> ...BUT the OP didn't ask about polymorphism and php
> doesn't support it at all anyway.
Ummm, PHP supports polymorphism.. it has at least since PHP 4.
http://whatis.tec
Pham said:
I want to execute polymorphism.
I've felt that way too.
tedd
--
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or pattern
- Original Message -
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Pham Huu Le Quoc Phuc" <[EMAIL PROTECTED]>
Cc: "Peter Lauri" <[EMAIL PROTECTED]>; "PHP-General"
Sent: Friday, March 24, 2006 2:01 PM
Subject: Re: [PHP] P
I want to execute polymorphism.
- Original Message -
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Pham Huu Le Quoc Phuc" <[EMAIL PROTECTED]>
Cc: "Peter Lauri" <[EMAIL PROTECTED]>; "PHP-General"
Sent: Friday, March 24, 2006
On Fri, 2006-03-24 at 01:48, Pham Huu Le Quoc Phuc wrote:
> In PHP, I can do the flowing code:
What you mean to say is that in PHP5 and only in PHP5 can you use
interfaces... and that would only be true if the following code were
correct.
> interface A
> {
> function Get();
> }
>
> class B ex
riginal Message -
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Peter Lauri" <[EMAIL PROTECTED]>
Cc: "PHP-General"
Sent: Friday, March 24, 2006 12:57 PM
Subject: Re: [PHP] Parents constructor
> On Fri, 2006-03-24 at 00:40, Peter Lauri wrote
On Fri, 2006-03-24 at 00:40, Peter Lauri wrote:
> Hi,
>
> I have a class B that extends class A. I want to call constructor of A
> correctly, how to do that. This is how I tried:
>
> Class B extends A {
> Function B($Bvariable) {
> Parent::A($Bvariable);
> }
>
> }
>
>
Hi,
I have a class B that extends class A. I want to call constructor of A
correctly, how to do that. This is how I tried:
Class B extends A {
Function B($Bvariable) {
Parent::A($Bvariable);
}
}
Class A {
Function A($Avariable) {
Dostuff..
15 matches
Mail list logo