Advertisement
apez1

Assignment 3: Ultimate Frisbee - Person Class Submission

Jan 23rd, 2019
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. package ultimateFrisbee;
  2.  
  3. public class Person {
  4.  
  5.     private String firstName;
  6.     private String lastName;
  7.    
  8.     public Person(String f1Name, String lName){
  9.        
  10.         firstName = f1Name;
  11.         lastName = lName ;
  12.        
  13.     }
  14.    
  15.     public String toString() {
  16.        
  17.          return lastName + ", " + firstName;
  18.        
  19.     }
  20.    
  21.    
  22.    
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement