← BYTES
C++·Starter·Ref: 8.1.16
What is function overloading in C++?
Have a question about this video? Mention reference 8.1.16 when you contact us.
a.Calling a function too many times, causing a stack overflow
b.Overriding a base class's virtual function
c.Defining multiple functions with the same name but different parameter lists (number or types of arguments), resolved by the compiler based on the actual arguments at each call site
d.A deprecated feature removed in modern C++
Overloading lets you write several functions sharing one name -- e.g. `void print(int)` and `void print(double)` -- and the compiler picks the right one at compile time based on the argument types supplied at each call site.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES8116#C