Arquivos
hhvm/hphp/test/quick/method3.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

22 linhas
243 B
PHP

<?php
abstract class A {
protected abstract function foo();
}
class B extends A {
protected function foo() {
echo "B::foo\n";
}
}
class C extends A {
function foo() {
$b = new B;
$b->foo();
}
}
$c = new C;
$c->foo();