Tag Archives: cpp-operator-overloading

Prerequisite: Operator Overloading in C++, Types of Operator Overloading When an object calls an operator function by passing an argument and the returned value of… Read More
 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… Read More
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… Read More
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,… Read More
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 operator… Read More
The dot (.) operator is used for direct member selection via object name. In other words, it is used to access the child object. Syntax:… Read More
Pre-requisite: Type Conversion in C++, Advanced C++ | Conversion Operators Through class conversion, one can assign data that belongs to a particular class type to… Read More
Operator Overloading: C++ provides a special function to change the current functionality of some operators within its class which is often called as operator overloading.… Read More
C++ map stores keys in ordered form (Note that it internally use a self balancing binary search tree). Ordering is internally done using operator ”… Read More
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).… Read More
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… Read More
The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more… Read More
The Subscript or Array Index Operator is denoted by ‘[]’. This operator is generally used with arrays to retrieve and manipulate the array elements. This… Read More
In C++, stream insertion operator “<<” is used for output and extraction operator “>>” is used for input. We must know following things before we… Read More
In C++, we can make operators to work for user defined classes. This means C++ has the ability to provide the operators with a special… Read More