Re: how to mark protected properties?

From: Date: Mon, 07 Jun 2004 21:46:10 +0000
Subject: Re: how to mark protected properties?
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30102@lists.php.net to get a copy of this message
Scott Mattocks wrote:
What if they get declared public in extending classes?
I may be wrong but I was under the impression that extended methods must have an access level equal to or more strict than the parent's method. If I am right then you wouldn't have to worry about methods with underscores ever becoming public.
Actually, they must have an access level eqaul to or *less* strict than parent's method, so certainly a protected method could become public in a child class, but never private. Hans

« previous php.pear.dev (#30102) next »