Polymorphism

3,164 views

Published on

1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
3,164
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
308
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Polymorphism

  1. 1. Prepared by : SELVIN JOSY BAI. S
  2. 2. It is the ability for a message or data to be processed in more than one form.It is the property by which thesame message can be sent to objects of several different classes.
  3. 3. Polymorphism in C++ is achieved by Function Overloading Operator Overloading Dynamic Binding
  4. 4. ExampleThe message send by ringing thebell in your school, is processedin many forms by which we areinformed aboutthe beginning of the class,end of the class,beginning of an interval,end of the day’s classes etc.
  5. 5. EARLY BINDINGIt refers to the ability of the compilerto relate or bind a function call withthe function definition duringcompilation itself.FUNCTION OVERLOADING andOPERATOR OVERLOADING comesunder this category.
  6. 6. LATE BINDINGIt refers to the binding of afunction call with the functiondefinition during runtime.It uses the concept of POINTERSand INHERITANCE.
  7. 7. POLYMORPHISM COMPILE TIME / RUNTIME / STATIC / EARLY DYNAMIC / BINDING LATE BINDING FUNCTION OPERATOR VIRTUALOVERLOADING OVERLOADING FUNCTION

×