Hi everybody! 😉
Why this piece of code (of course an example) does not work on php5beta2..?
In java this would be allowed...
class Test
{
protected function printMyName()
{
print "Static 77\n";
}
}
class Test1 extends Test {}
$tt = new Test1();
$tt->printMyName();
it prints:
Fatal error: Call to protected method test::printMyName() from context '' in etc.etc.
Thank you all!
Static 77