Example #1
0
 public function __construct()
 {
     var_dump(self::method());
     var_dump(parent::method());
     var_dump(self::$property);
     var_dump(parent::$property);
 }
{
    public function method2();
}
class A implements IB
{
    public function method()
    {
        echo "method" . PHP_EOL;
    }
    public function method2()
    {
        echo "method2" . PHP_EOL;
    }
}
$a = new A();
$a->method();
$a->method2();
// multiple inheritance
interface IAA
{
    public function method();
}
interface IAB
{
    public function method2();
}
interface IAC extends IAA, IAB
{
    public function method3();
}
class AC implements IAC