码家

Web Platform, Cloud and Mobile Application Development

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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

posted on 2011-05-26 17:08  海山  阅读(175)  评论(0)    收藏  举报