In my school management system I have this partial class diagram:
1- In one use case student want to see his schedule of classes in week. this is what i suppose to do:
get student object from session and call method getSchedule() on that and it will give me schedule(this method calls StudentCourse, Course for getting schedule).
Is this good place to put getSchedule() method or I should place it elsewhere?
..................................................
2- In another use class student's parent want to see his child class schedule, I plan to do something like this:
Because I have some use cases that parent want to see some other student information(course mark...), I create interface StudentParentInterface that have method getSchedule() and other methods and student implement StudentParentInterface, then parent has reference to StudentParentInterface not student obj directly.
parent call getSchedule() method on StudentParentInterface, is this correct?
Aucun commentaire:
Enregistrer un commentaire