We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 019abc9 commit 5f39f7fCopy full SHA for 5f39f7f
adapter/README.md
@@ -56,15 +56,14 @@ public class FishingBoat {
56
And captain expects an implementation of `RowingBoat` interface to be able to move
57
58
```java
59
-public class Captain implements RowingBoat {
+public class Captain {
60
61
private RowingBoat rowingBoat;
62
-
+ // default constructor and setter for rowingBoat
63
public Captain(RowingBoat rowingBoat) {
64
this.rowingBoat = rowingBoat;
65
}
66
67
- @Override
68
public void row() {
69
rowingBoat.row();
70
0 commit comments