Re: declaring classes as static or final

php.internals

Michael Virnstein

21 years ago
> 1. static classes: > static classes can only contain static methods and attributes >
what would be even easier than the above: if a class is declared "static" or "final static", the attributes and methods in that function are static by default, so you don't need to type static on every method and attribute. Regards, Michael

Marcus Börger

21 years ago
Hello Michael, Thursday, September 30, 2004, 9:19:12 PM, you wrote:
>> 1. static classes: >> static classes can only contain static methods and attributes >>
> what would be even easier than the above: > if a class is declared "static" or "final static", the attributes and > methods in that function are static by default, so you don't need to > type static on every method and attribute.
You mean like an interface adds abstract to all functoins...
-- Best regards, Marcus mailto:helly@php.net