Question: Which OOP concept is this code an example of?

  1. composition
  2. generics
  3. polymorphism
  4. encapsulation

Answer: The correct answer of the above question is Option C:polymorphism