Question
The current code I have is the following:
package uml;
public class uml {
public
static void main(String[] args)
{
// TODO Auto-generated method stub
}
}
class Account {
private String accountID;
public Account(String accountID) {
this.accountID = accountID;
}
public String getAccountID() {
return accountID;
}
public void
setAccountID(String accountID) {
this.accountID = accountID;
}
@Override
public String toString() {
return “Account [accountID=” + accountID +
“]”;
}
}
class SuppliesAccount extends
Account {
private int numberOfItems;
private double
pricePerItem;
public SuppliesAccount(String accountID,
int numberOfItems, double
pricePerItem) {
super(accountID);
this.numberOfItems = numberOfItems;
this.pricePerItem = pricePerItem;
}
public int getNumberOfItems()
{
return numberOfItems;
}
public void
setNumberOfItems(int numberOfItems) {
this.numberOfItems = numberOfItems;
}
public double
getPricePerItem() {
return pricePerItem;
}
public void
setPricePerItem(double pricePerItem) {
this.pricePerItem = pricePerItem;
}
@Override
public