📄 abstractanswerset.java
字号:
package paper;
import java.io.Serializable;
/**
* @author SpiritRain
*
* Abstract class of Answer set
* which contains all of the key answers
*
*/
public abstract class AbstractAnswerSet implements Serializable {
/**
* key answers
*/
protected AbstractAnswer key;
/**
* create an answer set with key
* @param key key answer of the question
*/
public AbstractAnswerSet(AbstractAnswer key) {
this.key = key;
}
/**
* check whether the ans is correct
* @param ans the answer to be checked
* @return ture if answer is correct,false otherwise
*/
public abstract boolean check(AbstractAnswer ans);
/**
* @return key of the answer
*/
public AbstractAnswer getKey() {
return key;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -