function main() { $a = new a(); $b = new b(); $c = new c(); $c->go($a); // fill $c->go($a); // hit $c->go($b); // would call with not AttrPublic $c->go($c); // again $c->go($c); // hit $c->go($a); // would call, not attr public }
function main() { var_dump(c::go()); }