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
Tag Archives: cpp-overloading
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, 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
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
Although polymorphism is a widely useful phenomena in C++ yet it can be quite complicated at times. For instance consider the following code snippet: #include<iostream>โฆ 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