Jump to content

virtual function in PHP?


hvle

Recommended Posts

[!--quoteo(post=376586:date=May 24 2006, 04:31 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 24 2006, 04:31 PM) [snapback]376586[/snapback][/div][div class=\'quotemain\'][!--quotec--]
If I understand where your going... something like....
[code]
abstract class1 {
  public abstract function foo() {}
}

class2 impliments class1 {
  public function foo() {
    return true;
  }
}
[/code]
[/quote]


strangely, I couldn't find any information relate to 'abstract' in the manual. There is very vague documentaion of class and OOP in PHP manual. I've found an alternative to this problem, but thanks for the info. I hope there'll be more 'doc' on this issue in the next version.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.