Skip to content

Tag Archives: cpp-operator-overloading

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… Read More
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… Read More
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
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, XYZ… 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 overloading? Let’s… 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