parent
461709ffcd
commit
c1ec2735ca
@ -1,19 +0,0 @@
|
||||
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…
Reference in new issue