Function Overloading and Overload Resolution

Learn about function overloading and the overload resolution in D.

We'll cover the following

Function overloading

Defining more than one function that have the same name is function overloading. In order to be able to differentiate these functions, their parameters must be different.

The following code has multiple overloads of the info() function, each taking a different type of parameter:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy