-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path49polymorphism.cpp
More file actions
23 lines (19 loc) · 956 Bytes
/
Copy path49polymorphism.cpp
File metadata and controls
23 lines (19 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
POLYMORPHISM :
-It is the ability to have multiple forms or one thing performing multiple tasks
POLYMORPHISM
|
|
__________|__________
| |
Compile time Run time
Polymorphism Polymorphism
| |
_____|_____ |
| | |
Function Operator Virtual
Overloading Overloading Function
Compile time : The compiler pre sets what function is to be called, what operation to be performed before the code runs
It binsds the object with the function on the basis of number of arguments passed
Run time : The compiler cannot determine beforehand which function is called with the object in case of overloading
*/