PHP question please

Soldato
Joined
3 Feb 2010
Posts
3,035
So i am trying to teach myself php and i'm running through a few tutorials

As an extra bit i am asked to extend the Person object to have a second member function "canDrink()" that returns true if the instance's age property is over 18, otherwise it should return false .

I've been looking dead faced at the monitor with no idea where i have gone wrong on this one :| Any tips?

I am VERY new at this..

Thank you for any help

image.png

image.png
 
Back
Top Bottom