Skip to content

Korrekturvorschlag Tabelle Vergleich const, readonly, static readonly VL 08_OOPGrundlagenII#125

Merged
SebastianZug merged 1 commit intoTUBAF-IfI-LiaScript:masterfrom
integralWhale:update014
Apr 10, 2026
Merged

Korrekturvorschlag Tabelle Vergleich const, readonly, static readonly VL 08_OOPGrundlagenII#125
SebastianZug merged 1 commit intoTUBAF-IfI-LiaScript:masterfrom
integralWhale:update014

Conversation

@integralWhale
Copy link
Copy Markdown
Contributor

Korrekturvorschlag für diese Stelle:

| | Konstante | Readonly | Readonly statisch |
| ------------------- | ------------ | --------------------- | --------------------- |
| Attribute | `const` | `readonly` | `readonly static` |
| Veränderbar bis ... | Kompilierung | Ende des Konstruktors | Ende des Konstruktors |
| Statisch | Standard, ja | Nein | Ja |
| Zugriff | Klasse | Instanz | Instanz |

Durch die "static" Eigenschaft hätte ich erwartet, dass der Zugriff im "static readonly"-Fall über die Klasse erfolgt, nicht die Instanz.

@SebastianZug SebastianZug merged commit b9e8817 into TUBAF-IfI-LiaScript:master Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants