Skip to content

Instantly share code, notes, and snippets.

@tedyoung
Created June 20, 2019 01:51
Show Gist options
  • Save tedyoung/42558b4a46436c8009ded19b131b11b7 to your computer and use it in GitHub Desktop.
Save tedyoung/42558b4a46436c8009ded19b131b11b7 to your computer and use it in GitHub Desktop.
Take a look at these two classes:
```
class Equity {
public Equity(String name) {
}
}
class Stock extends Equity {
}
```
What's wrong with this code
and how might you fix it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment