Updating README.md file to update doc as suggested in issue#925 (#926)

This commit is contained in:
Hemant Bothra 2019-09-20 10:38:43 +05:30 committed by Ilkka Seppälä
parent 019abc9980
commit 5f39f7fbf7

View File

@ -56,15 +56,14 @@ public class FishingBoat {
And captain expects an implementation of `RowingBoat` interface to be able to move And captain expects an implementation of `RowingBoat` interface to be able to move
```java ```java
public class Captain implements RowingBoat { public class Captain {
private RowingBoat rowingBoat; private RowingBoat rowingBoat;
// default constructor and setter for rowingBoat
public Captain(RowingBoat rowingBoat) { public Captain(RowingBoat rowingBoat) {
this.rowingBoat = rowingBoat; this.rowingBoat = rowingBoat;
} }
@Override
public void row() { public void row() {
rowingBoat.row(); rowingBoat.row();
} }