How do I use static functions/properties with inheritance? I've found it
very problematic.
class Foo
{
static function A() {/* ??? */::B(); }
static function B() {echo 'Foo';}
};
class Bar extends Foo
{
static function B() {echo 'Bar';}
}
I'd like Bar::A() to respect inheritance and output 'Bar', but I can't
figure out how to make call from base class to static methods of inherited
class.
Is there equivalent of $this for static calls? Or something being reverse
of 'parent'?
--
* html {redirect-to: url(http://browsehappy.pl) ;}
Comment