Files
G4G0-1/Semester 1/Programming 1/Java/examples/projects/chapter04/auction/Person.java
2024-01-15 20:14:10 +00:00

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;
}
}