-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathPolymorphism OOP Feature Explained
More file actions
22 lines (12 loc) · 1.04 KB
/
Polymorphism OOP Feature Explained
File metadata and controls
22 lines (12 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Polymorphism depends or is executed by method overloading and method overriding. The below video explains these in
the best way possible.
https://www.youtube.com/watch?v=Qt_XFk6PR_M
Also one more thing to note:
Dynamic versus Static Polymorphism
Polymorphism implemented via inheritance is bounded and dynamic:
- Bounded means that the interfaces of the types participating in the polymorphic behavior are predetermined by the design of the common base class (other terms for this concept are invasive or intrusive).
- Dynamic means that the binding of the interfaces is done at run time (dynamically).
Polymorphism implemented via templates is unbounded and static:
- Unbounded means that the interfaces of the types participating in the polymorphic behavior are not predetermined (other terms for this concept are noninvasive or nonintrusive).
- Static means that the binding of the interfaces is done at compile time (statically).
Source -> http://codeidol.com/community/cpp/dynamic-versus-static-polymorphism/21762/