class xyz {
int sum;
public void Calculate(int a, int b) {
sum = a + b;
}
public int getResult() {
return sum;
}
}
1
solved How to get a result of a function from another function?
class xyz {
int sum;
public void Calculate(int a, int b) {
sum = a + b;
}
public int getResult() {
return sum;
}
}
1
solved How to get a result of a function from another function?