/**
 * A person has a first and last name.
 */
public class Person {
  private String firstName;
  private String lastName;

  /**
   * Create a person with the given first and last names.
   * Precondition: neither first nor last contain the ' ' character.
   */
  public Person(String firstName, String lastName) {
    assert !firstName.contains(" ");
    assert !lastName.contains(" ");

    this.firstName= firstName;
    this.lastName= lastName;
  }

  /**
   * Get the person's full name.
   */
  public String getName() {
    return firstName + " " + lastName;
  }
}
