Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
notes for Function overloading & ridding in C++
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17. Function Overloading Function Overriding
It falls under Compile-Time
polymorphism
It falls under Runtime
Polymorphism
A function can be overloaded
multiple times as it is resolved at
Compile time
A function cannot be overridden
multiple times as it is resolved at
Run time
Can be executed without
inheritance
Cannot be executed without
inheritance
They are in the same scope They are of different scopes.
Function Overloading Vs Function Overriding