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 -

C++ overload resolution

Given the following example, why do I have to explicitly use the statement b->A::DoSomething() rather than just …

c++ function overloading resolution
Does dart support operator overloading

I read that Dart does not support function overloading. Does it support operator overloading. If yes, would be kind and …

function overloading operator-keyword dart
C# Action and Func parameter overloads

I need a method that takes an Action (or a Func), but the Action has a mixed number of parameters. …

c# parameters action overloading func
Shadows vs Overloads in VB.NET

When we have new in C#, that personally I see only as a workaround to override a property that does …

.net vb.net oop overloading shadows
How can I do constructor overloading in a derived class in TypeScript?

Assuming I have a 'base' class such as this: class CcDefinition { // Some properties here constructor (json: string); constructor (someVar: number, …

inheritance constructor typescript overloading extends
Java erasure with generic overloading (not overriding)

I have FinanceRequests and CommisionTransactions in my domain. If I have a list of FinanceRequests each FinanceRequest could contain multiple …

java generics overloading type-erasure
The method is ambiguous for the type Error

I am trying to understand how Overloading in JAVA works and trying to get grasp of various overloading rules that …

java overloading ambiguous
Kotlin method overloading

This following declaration is legal in Kotlin. fun foo(): String = "foo_1" fun <T> foo(): T = "foo_2" as T …

java kotlin overloading java-interop
constexpr overloading

Related: Function returning constexpr does not compile I feel like constexpr is limited in usefulness in C++11 because of the …

c++ c++11 overloading compile-time-constant constexpr
C# Overload return type - recommended approach

I have a situation where I just want the return type to be different for a method overload, but you …

c# .net overloading return-type