Types of Polymorphism

  • Static Polymorphism
    • Method overloading
    • It uses the concept of compile time binding
    • Method is invoked based on the reference type
  • Dynamic Polymorphism
    • Method overriding
    • It uses the concept of late binding or runtime binding
    • Method is invoked based on the object type

The words compile time and static , and similarly runtime and dynamic are interchangeably used in the context of Polymorphism and binding

相关文章:

  • 2021-12-02
  • 2021-10-23
  • 2021-06-23
  • 2021-12-02
  • 2021-08-05
  • 2021-06-18
  • 2022-03-08
猜你喜欢
  • 2021-10-26
  • 2021-04-29
  • 2021-05-18
  • 2021-07-22
  • 2021-08-11
  • 2021-10-06
  • 2022-02-17
相关资源
相似解决方案