From ce7301f4b95d00a113a8ca874acc2bff9dfc6e51 Mon Sep 17 00:00:00 2001 From: paebc67fu <1710916392@qq.com> Date: Wed, 8 Sep 2021 16:20:42 +0800 Subject: [PATCH] ADD file via upload --- Addition.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Addition.java diff --git a/Addition.java b/Addition.java new file mode 100644 index 0000000..fcf046a --- /dev/null +++ b/Addition.java @@ -0,0 +1,24 @@ +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; + } +} \ No newline at end of file