/**
* Wallet class that stores money.
* @author Fred Kral
* @version 1.1
*/

public class Wallet extends StoreMoney {
	
	/* Variables */
	
	private String firstName;
	private String lastName;

	/* Constructors */
	
	
	/**	
	* Constructor with initial deposit
	* @param initialDeposit Opening balance
	*/
	public Wallet (double initialDeposit){
		this(initialDeposit, "_nofirstname","_nolastname");
	}
	
	/**	
	 * Constructor with names and initial deposit
	 * @param initialDeposit Opening balance
	 * @param firstName first name owner
	 * @param lastName last name of owner
	 */
	
	public Wallet (double initialDeposit, String firstName, String lastName){
		super (initialDeposit);
		this.firstName = firstName;
		this.lastName = lastName;
	}
	
	/* Methods */
	
	
	/* Get the names */
	
	
	/**
	 * Get the first name of owner
	 * @return First name
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * Get the last name of owner
	 * @return Last name
	 */
	public String getLastName() {
		return lastName;
	}
	
	/** 
	 * Print the wallet info with text before and after and new line
	 * @param preString Text to print before the info is printed
	 * @param postString Text to print after the info is printed
	 */
	public void printInfo (String preString, String postString){
		System.out.print(preString);
		System.out.print(" " + getFirstName());
		System.out.print(" " + getLastName());
		System.out.print(" $");
		printBalance();
		System.out.print(" " + postString + "\n");
	}	
	
}
