Greetings,
I think I've confused myself in a weird object-oriented manner, I hope you can help me to straight out things alittle...
Here's my request for clarification and thank you for your time =)
A student can enroll in several courses and a course can enroll several students.
To model that relationship in an object-oriented manner, I have a hashset of students in course Class and a hashset of courses in student Class.
When student A object is created using NEW, it is then added to course A. Now I want to add student A to course B as well...do I created another student A to add to course B collections?
What about the collections of courses in student? And there's a problem with duplication of students attributes in courses and courses' attributes.
How should I model this many to many relationship between student and course?
And where should store the awarded grades, should it be an instance variables of student or course?
Thanks again!