Posted By

fwryan on 10/03/09


Tagged


Versions (?)

static class name abstract


 / Published in: PHP
 

  1. <?php
  2. abstract class A {
  3. protected static function a () {
  4. }
  5. }
  6.  
  7. class B extends A {
  8.  
  9. }
  10.  
  11. class C {
  12. function main () {
  13. echo B::a();
  14. }
  15. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: fwryan on October 3, 2009

In the exsample, I'm looking for "B", but I always get "A"

You need to login to post a comment.