first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user