10.4 Polymorphism

Two main types of Polymorphism.

  1. >Static: The behaviour is decided at Compile-time, like in method/operator overloading.
  2. >Dynamic: The behaviour is decided at Runtime, like in method/function overriding.

10.4.1 The Four types of Polymorphism.

1. Method overloading:

2. Operator Overloading:

3. Method overriding:

4. Function overriding: