Data Structure
Java
Python
HTML
Interview Preparation
Tutorials
Courses
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Misc
7.7K+ articles
C++
3.7K+ articles
STL
1.3K+ articles
CPP-Functions
619+ articles
cpp-pair
76+ articles
cpp-operator-overloading
23+ articles
C++-Function Overloading and Default Arguments
7+ articles
Operator Overloading
6+ articles
cpp-overloading
23 posts
Recent Articles
Popular Articles
Method Overloading in C++ Classes
Last Updated: 07 August 2025
In C++, method overloading refers to defining multiple functions within the same class with the same name but different parameter lists. It allows a class to provide diffe...
read more
C++
CPP-Functions
cpp-class
cpp-overloading
Tag Dispatch in C++
Last Updated: 23 July 2025
Tag dispatch is a programming technique by which we can call different overloads of a function based on the dummy argument passed to it. It is especially useful when we wa...
read more
C++
CPP-Functions
cpp-advanced
C++-Function Overloading and Default Arguments
cpp-overloading
How to Overload std::swap()?
Last Updated: 23 July 2025
In C++, std::swap is a standard library function that is used to exchange the values of two objects. There might be situations where we want to provide a custom implementa...
read more
C++
Picked
STL
CPP-Functions
cpp-overloading
Function Overloading vs Function Templates in C++
Last Updated: 23 July 2025
In C++, both function overloading and function templates allow us to create functions that can operate on different types of data. While they might seem similar, they are ...
read more
C++ Programs
C++
Picked
cpp-template
cpp-overloading
Different Ways of Operator Overloading in C++
Last Updated: 23 July 2025
In C++, operator overloading is the concept that allows us to redefine the behavior of the already existing operator for our class. C++ provides a special function called ...
read more
C++
cpp-overloading
CPP-OOPs
How to Use Default Arguments in Function Overloading in C++?
Last Updated: 23 July 2025
In C++, we can provide the default values for the input arguments into the functions and it is also supported in function overloading. In this article, we will learn how t...
read more
C++ Programs
C++
Picked
C++-Function Overloading and Default Arguments
cpp-overloading
CPP-OOPs
CPP Examples
Overloading Relational Operators in C++
Last Updated: 23 July 2025
In C++, operator overloading is used to redefine the behavior of already existing operators. Similarly, overloading the relational operators is commonly used to compare th...
read more
C++ Programs
C++
Picked
cpp-operator-overloading
C++-Operator Overloading
Operator Overloading
cpp-overloading
CPP Examples
Calling of overloaded subroutines and ways for finding accurate match in C++
Last Updated: 23 July 2025
Just like other subroutines, overloaded subroutines are also called. To decide which function to invoke it is important to determine the number and type of arguments. For ...
read more
C++ Programs
C++
CPP-Functions
C++-Function Overloading and Default Arguments
cpp-overloading
Overloading the Comma Operator
Last Updated: 12 July 2025
In C++, we can overload the comma operator using Operator Overloading. For Example: For "Send the query X to the server Y and put the result in variable Z", the "and" play...
read more
C++
cpp-operator-overloading
cpp-overloading
Count number of Unique Triangles using Operator overloading
Last Updated: 15 July 2025
Given N triangles along with the length of their three sides as a, b and c. The task is to count the number of unique triangles out of these N given triangles. Two triangl...
read more
DSA
cpp-operator-overloading
C++-Operator Overloading
Operator Overloading
cpp-overloading
C++ program to compare two Strings using Operator Overloading
Last Updated: 12 July 2025
Pre-requisite: Operator Overloading in C++Given two strings, how to check if the two strings are equal or not, using Operator Overloading.Examples:Input: ABCD, XYZOutput: ...
read more
C++
cpp-operator-overloading
Operator Overloading
cpp-overloading
Operator overloading in C++ to print contents of vector, map, pair, ..
Last Updated: 03 September 2018
Operator overloading is one of the features of Object oriented programming which gives an extra ability to an operator to act on a User-defined operand(Objects). We can ta...
read more
Misc
C++
STL
cpp-operator-overloading
cpp-pair
cpp-overloading
Overloading New and Delete operator in c++
Last Updated: 18 October 2022
The new and delete operators can also be overloaded like other operators in C++. New and Delete operators can be overloaded globally or they can be overloaded for specific...
read more
C++
cpp-operator-overloading
Dynamic Memory Allocation
cpp-overloading
Function Overloading vs Function Overriding in C++
Last Updated: 23 July 2025
Function Overloading (achieved at compile time)Function Overloading provides multiple definitions of the function by changing signature i.e. changing number of parameters,...
read more
Difference Between
C++
CPP-Functions
cpp-overloading
Function Overloading and float in C++
Last Updated: 23 July 2025
Although polymorphism is a widely useful phenomena in C++ yet it can be quite complicated at times. For instance consider the following code snippet:CPP #includ...
read more
C++
cpp-data-types
CPP-Functions
cpp-overloading
1
2