Method overloading

  1. Method overloading (Compile time Polymorphism).
  2. Method overriding (Run Time Polymorphism).
  • In this, more than one method of the same class shares the same method name having different signatures. Method overloading is used to add more to the behavior of methods and there is no need of more than one class for method overloading.
  • Python doesn't support it, but we can use overload decorator from typing module
  • We MUST use metaclass with @overload decorator
SuperMade with Super