RE: [PHP] Polymorphism question

2002-02-17 Thread Martin Towell
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++

[PHP] Polymorphism question

2002-02-15 Thread Richard Fox
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

RE: [PHP] Polymorphism question

2002-02-15 Thread Rick Emery
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

[PHP] Polymorphism question

2002-02-15 Thread Richard Fox
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(); //