On Thu, 2004-05-13 at 11:41, Gregory wrote:
> Rudy Metzger wrote:
>
> >Although you are correct with your explanations to better use methods
> >and private/protected attributes, this is not the core of the problem.
> >The problem is that self:: always refers to the current class (A or B or
> >C),
Do you have to access that variable statically?
If you're scope is the class:
echo $this->myInstance;
Otherwise,
echo C::$myInstance will access it outside the class (I think), even though
it's inherited.
"Rudy Metzger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear all,
>
2 matches
Mail list logo