private variable in object ??
| From: | Jeroen Olthof | Date: | Fri, 29 Dec 2000 01:10:06 +0000 |
| Subject: | private variable in object ?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32181@lists.php.net to get a copy of this message | ||
hi, I'm used programming OO in java.
the variable in a class could be private. only instance of te same classe
can directly access those variable. all other have to use functions
like
name = someObject.getName()
I'd like to know if php uses (or is able to use) this structure because in
this way the programmer got more control over all the things that happens in
a object.
kind regard
jeroen olthof