forked fromiluwatar/java-design-patterns
- Notifications
You must be signed in to change notification settings - Fork0
Commit696ed86
authored
Captain is implementing RowingBoat - Adapter pattern
Captain and RowingBoat aren't interchangable. Captain, as a client, may have a method to use the boat, but it isn't needed that they share the same interface, as it makes the code more confusing.1 parente01d640 commit696ed86
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
|
0 commit comments
Comments
(0)