Lesson 5 - Overloading functions and static in C++
In the last lesson, References in C++, we learned about references.
Today we'll look again at the functions, but let us mention additional information that hasn't been covered in the basics,
Function overloading
Overloading a function means having more functions with the same name but different parameters. For example, we may have a function representing a mathematical operation. We'd probably like to enable all numeric types as a parameter. This means that we'll call the same function for the int type and for the double type. We do this by overloading it:
...End of the preview...
Continue further
You've come here and that's great! We believe that the first lessons showed you something new and useful
Do you want to continue the course? Go to the premium section.
Buy this course
This article is licensed: Premium, by buying this article, you agree with the terms of use.
- Unlimited and permanent access to individual lessons.
- High quality IT knowledge.
- Skills to help you get your dream and well-paid job.
Article description
Requested article covers this content:
Let's look at what function overloading means and learn what static variables are.
You gain credits by supporting our network. This is done by sending a helpful amount of money to support the site, or by creating content for the network.