diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-26 15:19:57 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-04-26 15:19:57 +0200 |
| commit | 0518b74a3b67929c197a2464338a563e92ead2ce (patch) | |
| tree | 152d89bb499c79c1ec9eba3c0bb2a69aefd06015 /Info/10/java_cheatsheet.md | |
| parent | 6e56adc86a549e30b74a3730448e54a50681d7fb (diff) | |
| download | unterricht-0518b74a3b67929c197a2464338a563e92ead2ce.tar.gz unterricht-0518b74a3b67929c197a2464338a563e92ead2ce.zip | |
add commets to explain private/public
Diffstat (limited to 'Info/10/java_cheatsheet.md')
| -rw-r--r-- | Info/10/java_cheatsheet.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Info/10/java_cheatsheet.md b/Info/10/java_cheatsheet.md index 1161a289..c0074e5f 100644 --- a/Info/10/java_cheatsheet.md +++ b/Info/10/java_cheatsheet.md @@ -48,7 +48,8 @@ pagestyle: empty +-----------------------+----------------------------------------------------------------------------+ | Zugriffsmodifikatoren | ```java | | für Attribute | class Kind { | -| und Methoden | private String name; | +| und Methoden | private String name; // Zugriff nur aus der Klasse | +| | // uneingeschränkter Zugriff | | | public String gibName() { return name; } | | | } | | | ``` | |
