Get up to 80 % extra points for free! More info:

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 will gain knowledge worth hundreds of thousands for a few crowns

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

Buy all currently available lessons with exercise submitting and other features for just $12.60
Current account balance $0
By buying this package, you'll have access to all 17 articles (17 lessons) in this course.

This article is licensed: Premium, by buying this article, you agree with the terms of use.

What will you get from us in the next lessons?
  • 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.

Article has been written for you by Richard Bleier
Avatar
Activities