Monday, August 22, 2011

Account


package com.evs.objava33.class14;

/**
 * THis class is used for Account holding purposes
 *
 * @author Masuds
 * @since 1.1
 */
public class Account {

private Integer accountNumber;
private Double balance;

/**
* THis is default Constructor
*
* @param accountNumber
*            - Bank Account Number
* @param balance
*            - Bank Account Balance
*/
public Account(Integer accountNumber, Double balance) {
this.accountNumber = accountNumber;
this.balance = balance;
}

/**
* @return the accountNumber
*/
public Integer getAccountNumber() {
return accountNumber;
}

/**
* @param accountNumber
*            the accountNumber to set
*/
public void setAccountNumber(Integer accountNumber) {
this.accountNumber = accountNumber;
}

/**
* @return the balance
*/
public Double getBalance() {
return balance;
}

/**
* @param balance
*            the balance to set
*/
public void setBalance(Double balance) {
this.balance = balance;
}

/*
* (non-Javadoc)
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "Account [accountNumber=" + accountNumber + ", balance="
+ balance + "]";
}
}

No comments:

Post a Comment