Re: [CFV] how to mark protected items?
| From: | Daniel Convissor | Date: | Tue, 22 Jun 2004 18:48:21 +0000 |
| Subject: | Re: [CFV] how to mark protected items? | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31099@lists.php.net to get a copy of this message | ||
Hi:
On Tue, Jun 22, 2004 at 08:41:15PM +0200, Bertrand Mansion wrote:
> At stage 2, you will notice that most of your variables will be protected. Then
> you will think "Wow, that's a lot of underscores !". Then, in your subclasses,
> you will start to ask yourself "Is this var protected or private, I can't
> remember".
That's exactly the point of having the underscore. It makes you think.
And if you don't remember, it says, "go look at the declarations or
documentation."
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409