method overloading and method overriding

Association, Composition & Aggregation in Java

  • Java
Association: Association is a relation between two separate classes which establishes through their Objects. One-to-one, one-to-many, many-to-one, and many-to-many associations are all possible. An Object communicates with another object to use its functionality and services in Object-Oriented programming. Composition and Aggregation are the two forms of association. Composition: The strongest type of association is composition. It represents part-of relationship. If […]