mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 18:59:21 +00:00
changing method names in Royalty to make Servant relation clearer
This commit is contained in:
@@ -10,11 +10,11 @@ public class Servant {
|
||||
}
|
||||
|
||||
public void feed(Royalty r){
|
||||
r.feed();
|
||||
r.getFed();
|
||||
}
|
||||
|
||||
public void giveWine(Royalty r){
|
||||
r.giveDrink();
|
||||
r.getDrink();
|
||||
}
|
||||
|
||||
public void GiveCompliments(Royalty r){
|
||||
|
||||
Reference in New Issue
Block a user