Re: private properties ....
| From: | Etienne Kneuss | Date: | Sun, 02 Dec 2007 12:19:35 +0000 |
| Subject: | Re: private properties .... | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33576@lists.php.net to get a copy of this message | ||
Hello,
Sorry late replies shouldn't be allowed ;)
class A { private $foo = 2; }
class B extends A { }
$b = new B;
$b->foo = 3; // Allowed already, it will create a public property foo in $b
--
Etienne Kneuss
http://www.colder.ch
Men never do evil so completely and cheerfully as
when they do it from a religious conviction.
-- Pascal