作业
class Student:
String no;
String name;
String age;
void completeWork(Work work){
StuToWork stw = new StuToWork(work,student,new Date(),null);
List.add(stw);
}
class Teacher:
String no;
String name;
String age;
class Computer
Software software;
class Software
public void completeWork(Work work,Student student);
public void commentWork(Work work);
class Work
String no;
String questions;
Teacher teacher;
Date date;//截止日期
//交给老师的作业
class StuToWork
Work work;
Student student;
//Teacher teacher;
Date date;//提交日期
String score;
int grade;
main(){
Teacher tea1 = new Teacher();
Teacher tea2 = new Teacher();
Student stu1 = new Student();
Student stu2 = new Student();
Work work1 = new Work(tea1);
Work work2 = new Work(tea1);
Work work3 = new Work(tea2);
Work work4 = new Work(tea2);
}