Calculate method problem.....
public class BillTest
public static void main (Stringarg)
Bill mum=new Bill(130,100);
Bill sister=new Bill(200,50);
Bill family=new Bill(0,0);
What calculate method can be use to calculate of 2 object mum&sister in family object....
public class Bill
public double callrate=0.25;
public double smsrate=0.05;
Bill(int a, int s)
airtime = a;
public double calculateBill()
return (airtime * callrate+ totalSms * smsrate);
public double calculateTotal(int m, int s)
double total= m + s;
confusing... Some buddy help me?
Re: Calculate method problem.....
Why are you posting a duplicate post when you already have an active thread in the forum for this problem? By splitting the discussion all you will likely do is frustrate those who have tried to help you, and I don't think that this is your goal nor is it a worthy goal.