In Python programming, a tuple is similar to a list. The difference between the two is that we cannot change the elements of a tuple once it is added on the other side in a list, elements can be changed. Tuples are quite similar to lists, but there are some
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
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
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
Multiple inheritance is not supported in case of class because of ambiguity. But it is supported in case of interface because there is no ambiguity as implementation is provided by the implementation class. When a class implements multiple interfaces, or an interface extends multiple interfaces i.e. known as multiple inheritance.