Aggregation vs Composition vs AssociationAggregation vs Composition vs Association

0 Comments

Aggregation:It represents a Has-A relation. Its a one way relationship which means that a departments can have multiple students but a student cant belong to multiple departments.Also in aggregation both the entities can exists independently which means that they are not dependent on each other, ending one entity will not


Polymorphism in JavaPolymorphism in Java

0 Comments

Polymorphism mean the condition of occurring in several different formsPolymorphism 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 class