Update transaction-script/Readme.md

Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
Ashish Trivedi 2020-08-10 00:24:20 +05:30 committed by GitHub
parent e09de2fb36
commit 5eb9b98e78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);