Polymorphism ,operator overloading,function overloading,dynamic binding

In the real world, the meaning of an operation varies with context and the same operation may behave differently, in different situation. The move operation, for example, behaves differently on the class person, and on the class polygon on the screen. A specific implementation of an operation by a certain class is called a method. A object oriented operation, being polymorphic, may have more than one method of implementing it. The word polymorphism is derived form the Greek meaning many forms. It allows a single name to be used for more than one related purpose, which are technically different. The following are the different ways of achieving polymorphism in a C++ program.
  • Function Name Overloading 
  • Operator overloading 
  • Dynamic Binding
Polymorphism permits the programmer to generate high level reusable component that can be tailored to fit different applications, by changing their low level parts,.

Dynamic Binding 
binding refers to the tie-up of a procedure call to the address code to be execute in response to the call. Bynamic binding means that the code associated with a given procedure call is not known until its call at run-time . For example, consider a graphic application in which th class figure 

Comments

  1. I have completely read your post and the content is crisp and clear. Thank you for posting such an informative article, I have decided to follow your blog so that I can myself updated. Python Training in Chennai

    ReplyDelete
  2. I have completely read your post and the content is crisp and clear. Thank you for posting such an informative article, I have decided to follow your blog so that I can myself updated.

    java training in chennai

    java training in omr

    aws training in chennai

    aws training in omr

    python training in chennai

    python training in omr

    selenium training in chennai

    selenium training in omr

    ReplyDelete
  3. Does Titanium have nickel in it? - TITNIA
    Titanium Hockey The game titanium canteen of skill is easy and easy to play. This game requires no introduction. The player micro touch trimmer is titanium meaning awarded titanium rings 1 titanium hair straightener penalty point. If it

    ReplyDelete

Post a Comment

Popular posts from this blog

Reusability In OOP

Encapsulation and Data Abstraction In OOP