Skip to content

Commit

Permalink
Merge pull request #26 from mdeff/patch-5
Browse files Browse the repository at this point in the history
missing parenthesis
  • Loading branch information
Semigradsky authored Jul 17, 2020
2 parents 8ed97dd + 79addd7 commit 56c863c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/thing_59/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Let's say our webshop offers items that can be downloaded and items that need to
```
public class Shipping {
public boolean ship(Item item, SurfaceAddress address) { ... }
public boolean ship(Item item, EMailAddress address { ... }
public boolean ship(Item item, EMailAddress address) { ... }
}
```

Expand Down Expand Up @@ -48,4 +48,4 @@ In this example we've delegated the responsibility of working with `Shipping` to

While there are cases where it's much more practical to use *if-then-else* instead of polymorphism, it is more often the case that a more polymorphic coding style will yield a smaller, more readable and less fragile code base. The number of missed opportunities is a simple count of the *if-then-else* statements in our code.

By [Kirk Pepperdine](http://programmer.97things.oreilly.com/wiki/index.php/Kirk_Pepperdine)
By [Kirk Pepperdine](http://programmer.97things.oreilly.com/wiki/index.php/Kirk_Pepperdine)

0 comments on commit 56c863c

Please sign in to comment.