Skip to content

Commit

Permalink
type update
Browse files Browse the repository at this point in the history
  • Loading branch information
bethrobson committed Mar 28, 2020
1 parent 0b59218 commit 5da3229
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/headfirst/designpatterns/adapter/ducks/DuckTestDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

public class DuckTestDrive {
public static void main(String[] args) {
MallardDuck duck = new MallardDuck();
Duck duck = new MallardDuck();

WildTurkey turkey = new WildTurkey();
Turkey turkey = new WildTurkey();
Duck turkeyAdapter = new TurkeyAdapter(turkey);

System.out.println("The Turkey says...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void onButtonWasPushed(int slot) {
public void offButtonWasPushed(int slot) {
offCommands[slot].execute();
}

public String toString() {
StringBuffer stringBuff = new StringBuffer();
stringBuff.append("\n------ Remote Control -------\n");
Expand Down

0 comments on commit 5da3229

Please sign in to comment.