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 -

Overload bracket operators [] to get and set

I have the following class: class risc { // singleton protected: static unsigned long registers[8]; public: unsigned long operator [](int i) { return …

c++ indexing overloading square-bracket
how to "reimport" module to python then code be changed after import

I have a foo.py def foo(): print "test" In IPython I use: In [6]: import foo In [7]: foo.foo() test …

python runtime ipython overloading python-import
error: overloaded 'operator<<' must be a binary operator (has 3 parameters)

I know there are plenty of questions like these, but I couldn't find a solution that worked for me. I …

c++ operator-overloading overloading
Method accepting two different types as parameter

I am writing a method that should accept as its parameter an object of one of two types which do …

java generics polymorphism overloading
c++ overloaded virtual function warning by clang?

clang emits a warning when compiling the following code: struct Base { virtual void * get(char* e); // virtual void * get(char* …

c++ warnings overloading virtual hidden
How to call a property of the base class if this property is being overwritten in the derived class?

I'm changing some classes of mine from an extensive use of getters and setters to a more pythonic use of …

python inheritance properties overloading descriptor
Method overloading in Objective-C?

As far as my knowledge, Objective-C does not support method overloading. What can be the alternative for this in Objective-C? …

ios objective-c overloading
C++ - overloading [] operator

I have a template class Array: template <class T=int, int SIZE=10> class Array { T TheArray[SIZE]; public: …

c++ operator-overloading overloading operator-keyword
Can I pass a primitive type by reference in Java?

I would like to call a method which could potentially take on different versions, i.e. the same method for …

java pass-by-reference overloading primitive-types
How to use complex number "i" in C++

I am coding a simple DFT algorithm now and I want to use the complex number i in complex exponential. …

c++ overloading complex-numbers complextype