Re: PHP Brain Teasers

From: Date: Tue, 03 Jul 2007 19:00:23 +0000
Subject: Re: PHP Brain Teasers
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-258175@lists.php.net to get a copy of this message
Daniel Brown wrote: >> Ahh well, how about this: >> >> <?php >> >> abstract class wood >> { >> protected function the() >> { >> >> } >> } >> >> class thetrees extends wood >> { >> public function foo() >> { >> } >> } >> >> >> $u = new thetrees(); >> $u->wood(); // Blerg >> > "If a tree falls in the woods, and no one is there to hear it, > does it make a sound?" > Nope - It's more about not seeing what is in front of you. The parse error is deliberate.... Col

« previous php.general (#258175) next »