# declaring classes as static or final

- Thread: https://externals.io/message/13079
- Original archive: https://news-web.php.net/php.internals/13079
- Started by Michael Virnstein on 2004-09-30T19:19:12+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13079 — Michael Virnstein — 2004-09-30T19:19:12+00:00

URL: https://externals.io/message/13079#13079

> 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

---

## #13080 — Marcus Boerger — 2004-09-30T20:08:56+00:00

URL: https://externals.io/message/13079#13080 · In reply to: #13079

Hello Michael,

Thursday, September 30, 2004, 9:19:12 PM, you wrote:

> > […]

> 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
