Association in java classes

Association :

Association is a general binary relationship that describes an activity between two classes. For example, a student taking a course is an association between the Student class and the Course class, and a faculty member teaching a course is an association between the Faculty class and the Course class. The following Student1 class and Class are designed to associate them with each other in such a way that Course class can handle the information of all students registered in a course by creating an array of Student class object.

associating java classes

associating java classes

Student Class

Course Class :