Skip to content

Tag Archives: cpp-overloading

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… 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 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
Function Overloading (achieved at compile time) Function Overloading provides multiple definitions of the function by changing signature i.e. changing number of parameters, change datatype of… Read More
Prerequisites: Constructors in C++ In C++, We can have more than one constructor in a class with same name, as long as each has a different… Read More
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… 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 the following things before we… Read More
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.… Read More
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… Read More
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… Read More
Which of the following operator functions cannot be global, i.e., must be a member function. (A) new (B) delete (C) Conversion Operator (D) All of… Read More