Created
February 1, 2020 16:57
-
-
Save abner-math/cbbec1bbba2462cce588fef3b87c52be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Developer { | |
private Role role; | |
protected void setRole(Role role) { | |
this.role = role; | |
} | |
public double getSalary() { | |
return this.role.getSalary(); | |
} | |
public boolean promote() { | |
return this.role.promote(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment