Tutorials
Courses
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
37.4K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
C++ Programs
2.4K+ articles
STL
1.3K+ articles
cpp-operator
59+ articles
cpp-overloading
23+ articles
C++-Operator Overloading
15+ articles
Operators
13+ articles
Operator Overloading
6+ articles
cpp-operator-overloading
23 posts
Recent Articles
Popular Articles
How to convert a class to another class type in C++?
Last Updated: 14 September 2021
Pre-requisite: Type Conversion in C++, Advanced C++ | Conversion OperatorsThrough class conversion, one can assign data that belongs to a particular class type to an objec...
read more
C++ Programs
C++
cpp-operator-overloading
Increment (++) and Decrement (--) Operator Overloading in C++
Last Updated: 16 November 2022
Operator overloading is a feature in object-oriented programming which allows a programmer to redefine a built-in operator to work with user-defined data types.Why Operato...
read more
C++
cpp-operator
cpp-operator-overloading
C++ program to compare two Strings using Operator Overloading
Last Updated: 18 May 2021
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
Strings
Technical Scripter
C++
DSA
cpp-operator-overloading
Operator Overloading
cpp-overloading
Overloading the Comma Operator
Last Updated: 06 October 2020
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++ Programs
C++
Computer Science Fundamentals
cpp-operator-overloading
cpp-overloading
Count number of Unique Triangles using Operator overloading
Last Updated: 02 November 2023
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
C/C++ Puzzles
Mathematical
Geometric
C++ Programs
Articles
C++
DSA
Arrays
cpp-operator-overloading
C++-Operator Overloading
Operator Overloading
cpp-overloading
Cascading of Input/Output Operators in C++
Last Updated: 24 May 2022
Prerequisite: Operator Overloading in C++, Types of Operator OverloadingWhen an object calls an operator function by passing an argument and the returned value of the oper...
read more
C++ Programs
C++
cpp-operator
cpp-operator-overloading
C-Operators
Operators
C++-Operator Overloading
Operator Overloading
Unformatted input/output operations In C++
Last Updated: 11 November 2021
In this article, we will discuss the unformatted Input/Output operations In C++. Using objects cin and cout for the input and the output of data of various types is possib...
read more
C++ Programs
C++
cpp-input-output
cpp-operator
cpp-operator-overloading
Operators
C++-Operator Overloading
Overloading of function-call operator in C++
Last Updated: 19 April 2021
In this article, we will discuss the Overloading of the function-call operators in C++.The function call operator is denoted by “()” which is used to call function and pas...
read more
C++ Programs
C++
cpp-operator
cpp-operator-overloading
C++-Operator Overloading
C++ Assignment Operator Overloading
Last Updated: 03 April 2025
Prerequisite: Operator OverloadingThe assignment operator,"=", is the operator used for Assignment. It copies the right value into the left value. Assignment Operators are...
read more
C++
Picked
cpp-operator
cpp-operator-overloading
Typecast Operator Overloading in C++
Last Updated: 18 December 2023
In C++, the typecast operator can be overloaded to customize the behavior of casting operators to define how user-defined data types can be converted into other types. Thi...
read more
C++
Picked
Geeks Premier League
cpp-operator-overloading
Geeks Premier League 2023
How to Overload the Multiplication Operator in C++?
Last Updated: 25 January 2024
In C++, the multiplication operator is a binary operator that is used to find the product of two numeric values. In this article, we are going to learn how to overload the...
read more
C++ Programs
C++
Picked
cpp-operator-overloading
CPP-OOPs
CPP Examples
Overloading Relational Operators in C++
Last Updated: 29 January 2024
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
How to Overload the Function Call Operator () in C++?
Last Updated: 07 February 2024
In C++, operator overloading allows the user to redefine the behavior of an operator for a class. Overloading the function call operator () allows you to treat objects lik...
read more
C++ Programs
C++
Picked
cpp-operator
cpp-operator-overloading
CPP-OOPs
CPP Examples
How to Overload the Arrow Operator (->) in C++?
Last Updated: 27 February 2024
C++ has the ability to redefine the function of operators for the objects of some class. This is called operator overloading. In this article, we will learn how to overloa...
read more
C++ Programs
C++
Picked
cpp-operator
cpp-operator-overloading
CPP-OOPs
CPP Examples
Error: std::endl is of Unknown Type when Overloading Operator <<
Last Updated: 22 July 2024
In C++, the operator is commonly overloaded for custom output for user-defined types using streams. However, an issue may arise when using std::endl with an overloaded op...
read more
C++
Picked
cpp-input-output
cpp-operator-overloading
cpp-manipulators
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 !