tion" has no, and can't have, and
code.
Please correct me if I'm wrong
Martin
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 3:31 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Polymorphism question
I've also done C and C++
I am new to PHP but 10 years in C++
One of the cool/powerful things you can do in C++ is the following:
class DrawDialog {
public:
...
virtual Draw(); // implementation draws a plain dialog box
};
class DrawStyleDialog : public DrawPlainDialog {
public:
...
virtual Draw(); // impleme
hich could be over-ridden in the derived class.
Yes, PHP does have the latter capability.
-Original Message-
From: Richard Fox [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 9:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Polymorphism question
I am new to PHP but 10 years in C
I am new to PHP but 10 years in C++
One of the cool/powerful things you can do in C++ is the following:
class DrawPlainDialog {
public:
...
virtual Draw(); // implementation draws a vanilla dialog box
};
class DrawStyleDialog : public DrawPlainDialog {
public:
...
virtual Draw(); //
4 matches
Mail list logo