BankAccount Public Interface
The public constructors and methods of a class form the public
interface of the class.
public class BankAccount
{
// Constructors
public BankAccount()
{
// body--filled in later
}
public BankAccount(double initialBalance)
{
// body--filled in later
}
// Methods
public void deposit(double amount)
{
// body--filled in later
}
public void withdraw(double amount)
{
// body--filled in later
}
public double getBalance()
{
// body--filled in later
}
// private fields--filled in later
}