Skip to main content

About function overloading

Function overloading is a feature in c++.
Probably Java also has this feature

c++ allows you to specify more than one function with same function names.
And that's called function overloading.

One thing to aware, all the functions overloaded should have same return data type.
The thing can differ is the arguments on the function.

The following example was wrote during the game programming class.



Note that the return data type is same on all functions overloaded.

Popular posts from this blog

Presentation about Technology of Search Engine

The slides won't be able to read easily because of the animation objects.

Presentation about Big Data

About python's programmatic flow

Is python object-oriented ? - Yes. So does it follow the object-oriented style programmatic flow? Lets check out. Here I have a short python code. Let's see the 6th line. If we call the function above the function itself, it will return the error which looks like this; This occurs because its called above the repeat_lyrics(); 's initialization. So from this, we can comprehend that python is a object-oriented  language, but the programmatic flow  doesn't follow the object-oriented style flow . Its complicated to work with this, (this probably is a bad practice) just call all functions above the working code.