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
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 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) It provides multiple definitions of the function by changing signature i.e changing number of parameters, change datatype of parameters,… 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… 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: filter_none… 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
Function overloading is a feature in C++ where two or more functions can have the same name but different parameters. Function overloading can be considered… Read More
If we have a function in base class and a function with same name in derived class, can the base class function be called from… Read More
Which of the following operator functions cannot be global, i.e., must be a member function. (A) new (B) delete (C) Converstion Operator (D) All of… Read More