Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ultimateFrisbee;
- public class Coach extends Person {
- private String role;
- public Coach(String first, String last, String r){
- super(first, last);
- role = r;
- }
- public String toString() {
- String output1 = null ;
- output1 = super.toString() + '\n' + " Role: " + role;
- return output1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement