diff options
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; } | | | } | | | ``` | |
