package helloworld;
public class Calculator {
private int a;
private int b;
private double result;
public double sum(int a, int b){
this.a=a;
this.b=b;
return result=a+b;
}
public double sub(int a, int b){
this.a=a;
this.b=b;
return result=a-b;
}
public double mult(int a, int b){
this.a=a;
this.b=b;
return result=a*b;
}
public double div(int a, int b){
this.a=a;
this.b=b;
return result=a/b;
}
}