• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

When speaking of c/c++ and java what does "overloading" mean?

It's when you declare two different methods with the same name, using different arguments. The compiler determines which of the two identically named methods to use based on the arguments submitted.
 
You can overload functions and operators, based upon the parameters passed to them.

In C, you cannot overload operators. I do believe you can overload functions.

In C++, you can overload operators and fuctions.

You can define a function with the same name, but different parameters. When you call the function, the compiler figures out which function you meant to call, and you can accomplish two different functions with the same function name.
 
MacBaine is correct, here's an example:

int myFunction(int a){
return ++a;
}

int myFunction(int a, int b){
return a+b;
}

Two different functions with the same name but different arguments.
 
How many vb programmers do you think started dancing in the streets when they found out they would finally get overloading, inheritance, and all the other OO goodies?
 
Originally posted by: Shanti
How many vb programmers do you think started dancing in the streets when they found out they would finally get overloading, inheritance, and all the other OO goodies?

Both of them that actually know enough about programming to know what those things are?
 
Back
Top