mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 13:12:17 +00:00
Updating README.md file to update doc as suggested in issue#925 (#926)
This commit is contained in:
1 parent
019abc9980
commit
5f39f7fbf7
1 file changed
+2
-3
+2
-3
@@ -56,15 +56,14 @@ public class FishingBoat {
|
||||
And captain expects an implementation of `RowingBoat` interface to be able to move
|
||||
|
||||
```java
|
||||
public class Captain implements RowingBoat {
|
||||
public class Captain {
|
||||
|
||||
private RowingBoat rowingBoat;
|
||||
|
||||
// default constructor and setter for rowingBoat
|
||||
public Captain(RowingBoat rowingBoat) {
|
||||
this.rowingBoat = rowingBoat;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void row() {
|
||||
rowingBoat.row();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user