Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Arithmetic

-leftOperand: int
-rightOperand: int

+ getQuestion(): String
+ checkAnswer(int) boolean
+ Arithmetic()
+ setLeftOperand(operand : int): int
+ setRightOperand( operand : int)
+ getLeftOperand() : int
+ getRightOperand() : int
+ getAnswer() : int

Addition Subtraction Multiplication


+Addition()
+Subtraction() +Multiplication()
+ checkAnswer( answer : int) : boolean
+ checkAnswer( answer : int) : boolean + checkAnswer( answer : int) :
+ getQuestion() : String
+ getQuestion() : String boolean
+ getQuestion() : String

You might also like