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.
relentless/MathQuestion.java

22 lines
483 B

/**
* 数学题目类,表示每一道数学题。
*/
public class MathQuestion {
private int questionNumber;
private String questionText;
// 构造方法
public MathQuestion(int questionNumber, String questionText) {
this.questionNumber = questionNumber;
this.questionText = questionText;
}
public int getQuestionNumber() {
return questionNumber;
}
public String getQuestionText() {
return questionText;
}
}