trizehn

Person

Nov 4th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1.  
  2. /**
  3.  * Write a description of class Person here.
  4.  *
  5.  * @author Daffa Tristan Firdaus
  6.  * @version 4 November 2020
  7.  */
  8. public class Person
  9. {
  10.     private final String name;
  11.     public Person(String newName)
  12.     {
  13.         this.name = newName;
  14.     }
  15.     public String getName()
  16.     {
  17.         return name;
  18.     }
  19. }
Add Comment
Please, Sign In to add comment