Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class HarvardLawyer extends Lawyer{
- public double getSalary(){
- return super.getSalary() * 1.2;
- }
- public int getVacationDays(){
- return super.getVacationDays() + 3;
- }
- public String getVacationForm(){
- String forms = "";
- for(int i = 1; i <= 4; i++) forms += super.getVacationForm();
- return forms;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement