Jump to content

virtual function in PHP?


hvle

Recommended Posts

[!--quoteo(post=376569:date=May 24 2006, 03:09 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 24 2006, 03:09 PM) [snapback]376569[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Yes.
[/quote]

How, would be great.
Link to comment
Share on other sites

If I understand where your going... something like....
[code]
abstract class1 {
  public abstract function foo() {}
}

class2 impliments class1 {
  public function foo() {
    return true;
  }
}
[/code]
Link to comment
Share on other sites

[!--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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.