62,620
社区成员
发帖
与我相关
我的任务
分享 //Check we are opening the account with a valid amount
if(openAmount >= 0.0)
{
try
{
//Create a Saving account for the customer with the openAmount
Account theAccount = new Savings(openAmount, theCustomer);
addAccount(theAccount);
return true;
}catch(AccountException e)
{public boolean closeAccount(Customer theCustomer, double theAmount)
{
if(rmAccount = 0.0)
{
try
{}
}
return true; rmAccount(theAccount);
return true;