Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Maintain details of someone who participates in an auction.
- *
- * @author Muhammad Naufaldillah
- * @version 23 October 2020
- */
- public class Person
- {
- // The name of this person
- private final String name;
- /**
- * Create a new person with the given name.
- * @param name The person's name.
- */
- public Person(String name)
- {
- this.name = name;
- }
- /**
- * @return The person's name.
- */
- public String getName()
- {
- return name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement