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
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

Start Your Coding Journey Now!