public static void main(String[] args) { Programming2Student hanMeimei = new Programming2Student("Meimei", "Han", 0, 8, 16, 34); System.out.println(hanMeimei.toString()); }
//成绩范围,min譬如你期末为0,max期末最大为50 public void set(int grade, int min, int max) throws Exception{ if(grade < min || grade > max){ throw new Exception("Grade can't be set because it's out of the range"); } }
public void setAssignment1Mark(int assignment1Mark) {