Skip to content

Commit

Permalink
adds is adult condition at Person entity
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviojava committed Mar 2, 2020
1 parent 23f88e3 commit 23f78f7
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -62,6 +62,10 @@ public String getIgnore() {
return ignore;
}

public boolean isAdult() {
return age > 21;
}

Person() {
}

Expand Down

0 comments on commit 23f78f7

Please sign in to comment.