定义一个类Student,并在控制台打印出来:属性有:学号,班级,姓名,性别实现一个构造器:Student (sno,clas,name,sex)方法有:void subjectTest (String subjectName),功能:在控制台打印出“×班×同学参加××考试”实现一个入口方法,调用上述类,并调用subjectTest方法打印出:“ ×班×同学参加XX课程考试”。(如:2班Lily同学参加《面向对象程序设计(Java)》课程考试)public _______________ Stu{ private int num; //学号private int clas ;//班级private String name; //姓名private char sex; //性别public Stu(___________________________________){ System.out.println("带参构造器");this.num=num;this.clas=clas;this.name=name;this.sex=sex;}public void subjectTest(String subjectName){System.out.println(____________________________________); }public static void main(String[]args){Stu a=____________ Stu(101,2,"Lily",'女');a.subjectTest(____________________________________); }}