Skip to content

Instantly share code, notes, and snippets.

@abner-math
Created February 1, 2020 16:57
Show Gist options
  • Save abner-math/cbbec1bbba2462cce588fef3b87c52be to your computer and use it in GitHub Desktop.
Save abner-math/cbbec1bbba2462cce588fef3b87c52be to your computer and use it in GitHub Desktop.
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