Association, Aggregation & Composition,
Association Association is relation between two separate classes which establishes through their Objects. Association can be one-to-one, one-to-many, many-to-one, many-to-many. In Object-Oriented programming, an Object communicates to other Object to use functionality and services provided by that object. Composition and Aggregation are the two forms of association. Program //Java program to understand the concept of association class School { private String school_name; School(String school_name) { this.school_name = school_name; } public String getSchoolName() { return this.school_name; } } class Student { private String student_name; Student(String student_name) { this.student_name = student_name; } public String getStudentName() { return this.student_name; } } public class Main { public static void main(String args[]) { School s = new School("Sarsvati ...