You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
421 B
24 lines
421 B
package visibleArithmeticExercise;
|
|
|
|
import visibleArithmeticExercise.Operation;
|
|
|
|
public class Addition extends Operation {
|
|
|
|
static String ch = "+";
|
|
|
|
public Addition(int n) {
|
|
super(ch,n);
|
|
}
|
|
|
|
@Override
|
|
public void operation() {
|
|
correctAnswer = op1 + op2;
|
|
}
|
|
|
|
public void isNumRight(){}
|
|
|
|
public void setRange(){
|
|
minRange = 0;
|
|
maxRange = maxInt + maxInt;
|
|
}
|
|
} |