I need to add the reciever object and the arguement of a method in a seperate class.
class CashRegister{
public void computesubtotal(){
subtotal.plus(itemprice);
}//end computesubtotal
}//end CashRegister
class DollarAmount{
public DollarAmount plus(int increment){
.......what goes here to add subtotal and itemprice
}//end plus
}//end DollarAmount
class CashRegister{
public void computesubtotal(){
subtotal.plus(itemprice);
}//end computesubtotal
}//end CashRegister
class DollarAmount{
public DollarAmount plus(int increment){
.......what goes here to add subtotal and itemprice
}//end plus
}//end DollarAmount