28 lines
514 B
Java
Executable File
28 lines
514 B
Java
Executable File
/**
|
|
* Maintain details of someone who participates in an auction.
|
|
* @author David J. Barnes and Michael Kölling.
|
|
* @version 2016.02.29
|
|
*/
|
|
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;
|
|
}
|
|
}
|