Advertisement
lamaulfarid

Person

Oct 29th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1.  
  2. /**
  3.  * Write a description of class Person here.
  4.  *
  5.  * @author Ahmad Lamaul Farid
  6.  * @version 28 Oktober 2020
  7.  */
  8.  
  9. public class Person
  10. {
  11.     private final String name;
  12.    
  13.     public Person(String newName)
  14.     {
  15.         this.name = newName;
  16.     }
  17.    
  18.     public String getName()
  19.     {
  20.         return name;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement