AssociationAssociation

0 Comments

Association: Its the relationship between two separate classes by their objects. It can be one to one, one to many, many to one and many to many. Composition and Aggregation are two forms of Association. Aggregation: It represents a Has-A relation. Its a one way relationship which means that a


PolymorphismPolymorphism

0 Comments

Polymorphism mean the condition of occurring in several different forms Polymorphism in Java has two types: Compile time polymorphism (static binding) and Runtime polymorphism (dynamic binding). Method overloading is an example of static polymorphism, while method overriding is an example of dynamic polymorphism. Polymorphism represents a IS-A relationship Consider a