Skip to content

Instantly share code, notes, and snippets.

@abner-math
Created February 1, 2020 16:57
Show Gist options
  • Save abner-math/643b6106c3dd2bbd26bb3d3c8e9ac6b6 to your computer and use it in GitHub Desktop.
Save abner-math/643b6106c3dd2bbd26bb3d3c8e9ac6b6 to your computer and use it in GitHub Desktop.
public class Expert implements Role {
@Override
public double getSalary() {
return 2000;
}
@Override
public boolean promote(Developer context) {
context.setRole(new Senior());
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment