Re: PHP Brain Teasers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux