Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13050 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62602 invoked by uid 1010); 28 Sep 2004 13:44:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62578 invoked by uid 1007); 28 Sep 2004 13:44:47 -0000 Message-ID: <20040928134447.62577.qmail@pb1.pair.com> To: internals@lists.php.net Date: Tue, 28 Sep 2004 15:44:48 +0200 User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <20040928124540.618.qmail@pb1.pair.com> In-Reply-To: <20040928124540.618.qmail@pb1.pair.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 217.86.76.114 Subject: Re: declaring classes as static or final From: michael.virnstein@brodos.de (Michael Virnstein) things i'd like to add: 4. abstract classes can be defined static also Hi Devs, > > what would probably be a nice addition: > > 1. static classes: > static classes can only contain static methods and attributes > > static class foo { > public static function bar() {} > } > ?> > > 2. final classes: > final classes can't be extended > > final class foo { > public function bar() {} > } > > 3. final static classes > final static classes can only contain static methods and attributes and > can't be extended. > > final static class foo { > public static function bar() {} > } > > What do you think about it?