Polymorphism and Generics

  1. Polymorphism refers to the fact that method invocation of a variable (identifier) is applied by calling the specific method of the object that it refers to rather than the method defined by the variable's type. Polymorphism occurs when a parent method is overloaded by the child class. Or by method overload in the same class level.

  2. Generics refers to the mechanism that the type of the argument(s) allowed in class instantiation/method invocation is more than one.

  3. The possible overlapping of polymorphism and generics: method with only one parameter.