Update transaction-script/Readme.md
Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
parent
e09de2fb36
commit
5eb9b98e78
@ -76,7 +76,7 @@ public class Hotel {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This class has two methods, one for booking and cancelling a room respectively.
|
The `Hotel` class has two methods, one for booking and cancelling a room respectively. Each one of them handles a single transaction in the system, making `Hotel` implement the Transaction Script pattern.
|
||||||
|
|
||||||
```
|
```
|
||||||
public void bookRoom(int roomNumber);
|
public void bookRoom(int roomNumber);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user