/* * DefaultAccount.java * * Copyright (C) 2004-08 Side of Software (SOS) * All rights reserved. * * http://www.sideofsoftware.com */ package examples; import java.io.*; /** * A straightforward implementation of the <code>Account</code> interface. * This class is part of Side of Software's Persistence Library * tutorial.<p> * * @author Side of Software */ public class DefaultAccount implements Account, Serializable { private double balance; /** * Returns this account's balance.<p> */ public double getBalance() { return balance; } /** * Sets this account's balance.<p> * * @param balance this account's new balance */ public void setBalance( double balance ) { this.balance = balance; } }