Re: Re: PHP Brain Teasers
| From: | Robert Cummings | Date: | Tue, 03 Jul 2007 19:25:26 +0000 |
| Subject: | Re: Re: PHP Brain Teasers | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258179@lists.php.net to get a copy of this message | ||
On Tue, 2007-07-03 at 20:00 +0100, Colin Guthrie wrote:
> 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....
Your hint was too good :)
"Can't see the woods for the trees."
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'