Loading subject…
Every attribute and method carries a symbol in front of it showing who can reach it.
| Symbol | Visibility | Meaning | Java keyword |
|---|---|---|---|
| - | Private | Reachable only inside this class | private |
| + | Public | Reachable from any class | public |
| # | Protected | Reachable in this class and its subclasses | protected |
| ~ | Package | Reachable within the same package | (no keyword) |
| Room |
|---|
| - roomNumber: int |
| - roomType: String |
| - isOccupied: boolean |
| - totalRooms: int (static, shown underlined) |
| + Room(roomNumber: int, roomType: String) |
| + checkIn(): boolean |
| + checkOut(): void |
| + clean(): void |
| + getRoomType(): String |