package edu.Clemson.Richard.Padgett;

public class Person {//names are case sensitive "Person with uppercase not same as lowercase"
	// fields
	private String name; //name of person
	private int maximumBooks; //most books a person can check out
	//names of classes should be uppercase and names of variables lowercase
	
	//constructors
	public Person() {
		name = "unknown name"; 
		maximumBooks = 3;	
	}
	
	//methods
	public String getName() {
		return name;
	}
	
	public void setName(String anyName) {
		name = anyName;
	}

	public int getMaximumBooks() {
		return maximumBooks;
	}

	public void setMaximumBooks(int maximumBooks) {
		this.maximumBooks = maximumBooks;
	}
	
	public String toString(){
		return this.getName() + " (" + this.getMaximumBooks() + " books)";
		
	}
	
	
}
