|
Posted by Steve on 10/21/34 11:26
On Wed, 31 Aug 2005 16:47:01 -0700, Piro wrote:
> Also, I noticed you wrote a method to return a class property... is
> there any way to access the property directly? Rather than
>
> print $client->getName();
>
> I was thinking
>
> print $client->name;
>
> It seems cumbersome to have methods for each class property, especially
> if there are a bunch of them.
....maybe now is a good time to do some reading on Object Orientated
Programming? And the fact that the primary concept is to *never* directly
access the data that the methods are protecting?
Steve
Navigation:
[Reply to this message]
|