public class BrilliantNumber { private int number;1public BrilliantNumber(int newNumber) { this.number = newNumber; }2public int square() { int num; num = this.number; return num * num; }3public int cube() { int num; num = this.number; return num * num * num; }4public void setNumber(int aNumber) { this.number = aNumber; }5public static void main(String[] args) { BrilliantNumber bn = new BrilliantNumber(10); System.out.println("Square: " + bn.square()); }6public static int getDefaultNumber() { return 10; } }
this.duration = 0; this.correct = 0; this.incorrect = 0;
public void reset() {
this.duration = 0;
this.correct = 0;
this.incorrect = 0;
}
this.reset();