LLBankCustomer - public long getAccount () { return...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // LLBankCustomer.java Author: Lewis and Loftus // // Solution to Programming Project 6.7 //******************************************************************** public class LLBankCustomer { private long account; private String name, phone; private double balance; //----------------------------------------------------------------- // Sets up the customer with the specified information. //----------------------------------------------------------------- public LLBankCustomer (long newAccount, String newName, String newPhone, double newBalance) { account = newAccount; name = newName; phone = newPhone; balance = newBalance; } //----------------------------------------------------------------- // Returns the account number. //-----------------------------------------------------------------
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: public long getAccount () { return account; } //-----------------------------------------------------------------// Sets the balance as specified. //-----------------------------------------------------------------public void setBalance (double newBalance) { balance = newBalance; } //-----------------------------------------------------------------// Returns the current balance. //-----------------------------------------------------------------public double getBalance () { return balance; } //-----------------------------------------------------------------// Returns this customer's information as a string. //-----------------------------------------------------------------public String toString () { return account + "\t" + name + "\t" + balance + "\t" + phone; } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online