Re: private properties ....

From: Date: Fri, 30 Nov 2007 16:57:12 +0000
Subject: Re: private properties ....
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-33554@lists.php.net to get a copy of this message
Hi, On Sat, 2007-12-01 at 00:24 +0800, "Jingcheng Zhang" wrote: > Hi Etienne, > Is "private" only an access limiter between classes?If so, I think private > properties and methods should be OK to be extended into the child class, but > currently that's not the case, and there is also a bug here, consider the > following example: The child class is another class, "private" gives you encapsulation inside the base class's context. and preventing acces from other class's context. johannes

« previous php.internals (#33554) next »