Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Misc
7.8K+ 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
Overloading Subscript or array index operator [] in C++
Last Updated: 23 July 2025
The Subscript or Array Index Operator is denoted by '[]'. This operator is generally used with arrays to retrieve and manipulate the array elements. This is a binary or n-...
read more
C++
cpp-operator-overloading
cpp-overloading
Overloading stream insertion (<>) operators in C++
Last Updated: 16 June 2021
In C++, stream insertion operator "" is used for output and extraction operator "" is used for input.We must know the following things before we start overloading these op...
read more
C++
cpp-operator-overloading
cpp-overloading
Operator Overloading in C++
Last Updated: 23 July 2025
in C++, Operator overloading is a compile-time polymorphism. It is an idea of giving special meaning to an existing operator in C++ without changing its original meaning.I...
read more
C++
cpp-operator-overloading
cpp-overloading
Function Overloading in C++
Last Updated: 23 July 2025
C++ function overloading allows you to define multiple functions with the same name but different parameters. It is a form of compile time polymorphism in which a function...
read more
C++
CPP-Functions
Functions
cpp-overloading
Does overloading work with Inheritance?
Last Updated: 23 July 2025
If we have a function in base class and another function with the same name in derived class, can the base class function be called from derived class object? This is an i...
read more
C++
CPP-Functions
cpp-inheritance
cpp-overloading
Function overloading and const keyword
Last Updated: 23 July 2025
Function overloading is a feature of object-oriented programming where two or more functions can have the same name but different parameters. When a function name is overl...
read more
C++
CPP-Functions
cpp-overloading
Functions that cannot be overloaded in C++
Last Updated: 23 July 2025
In C++, following function declarations cannot be overloaded. 1) Function declarations that differ only in the return type. For example, the following program fails in com...
read more
C++
cpp-overloading
Function Overloading and Return Type in C++
Last Updated: 12 July 2025
Function overloading is possible in C++ and Java but only if the functions must differ from each other by the types and the number of arguments in the argument list. Howev...
read more
C++
CPP-Functions
cpp-overloading
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !