ADD file via upload

develop
hnu202304060319 5 months ago
parent d693f77a80
commit 77ac53bbbe

@ -0,0 +1,19 @@
public class QueSetingFactory {
public QuestionSeting getQueSeting(String type){
switch (type) {
case "小学" -> {
return new PrimaryQueSeting();
}
case "初中" -> {
return new MiddleQueSeting();
}
case "高中" -> {
return new HighQueSeting();
}
default -> {
System.out.println("类型错误");
return null;
}
}
}
}
Loading…
Cancel
Save