Top "Overloading" questions

The terms overloading and overloaded may refer to: - Constructor and method overloading, a type of polymorphism where different functions with the same name are invoked based on the data types of the parameters passed - Operator overloading, a form of functional or method overloading where the action being overloaded is an operator, such as + or -

How does `is_base_of` work?

How does the following code work? typedef char (&yes)[1]; typedef char (&no)[2]; template <typename B, typename D&…

c++ templates overloading implicit-conversion typetraits
Overload a C++ function according to the return value

We all know that you can overload a function according to the parameters: int mul(int i, int j) { return …

c++ function puzzle overloading
Is it possible to overload the ShowDialog method for forms and return a different result?

EDIT: This method actually works great and I asked it then found the solution later. I added the correct call …

c# modal-dialog overloading dialogresult
C++ overloading conversion operator for custom type to std::string

I hope someone might be able to answer why the following doesn't work. Bear with me though, I am still …

c++ overloading operator-keyword
C# Optional Parameters or Method Overload?

Since C# added optional parameters is it considered a better practice to use optional parameters or method overloads or is …

c# coding-style overloading optional-parameters
Overloading is compile-time polymorphism. Really?

I do know the syntactical difference between overriding and overloading. And I also know that overriding is run-time polymorphism and …

java polymorphism overloading overriding method-dispatch
Creating methods with infinite parameters?

In C# you can do this: foo = string.Format("{0} {1} {2} {3} ...", "aa", "bb", "cc" ...); This method Format() accepts infinite parameters, being the …

c# .net function overloading
Should you declare methods using overloads or optional parameters in C# 4.0?

I was watching Anders' talk about C# 4.0 and sneak preview of C# 5.0, and it got me thinking about when optional …

c# c#-4.0 overloading optional-parameters
What is the use of const overloading in C++?

In C++, a function's signature depends partly on whether or not it's const. This means that a class can have …

c++ function constants overloading
Java - why no return type based method overloading?

I know this is not possible but can anyone provide a theory as to why Java chose not to support …

java programming-languages return overloading