Java
OOP GUIDE / WORK
MULTPRACTICE CLASS SOLUTIONS
Source
TASK – PART 1 – SETUP – STUDYPRACTICE INTERFACE
No solution required.
TASK – PART 2 – WORK
Here is my solution:
public class MultPractice implements StudyPractice
{
private int first;
private int second;
public MultPractice(int f, int s)
first = f;
second = s;
}
@Override
public String getProblem()
return first + " TIMES " + second;
public void nextProblem()
second++;
TASK – PART 3 – TESTING YOUR CLASS