#Operator #Overloading #Polymorphism In C++, it's possible to change the way operator works (for user-defined types). In this article, you will learn to implement operator overloading feature.
The meaning of an operator is always same for variable of basic types like: int, float, double etc. For example: To add two integers, + operator is used.
However, for user-defined types (like: objects), you can redefine the way operator works. For example:
If there are two objects of a class that contains string as its data members. You can redefine the meaning of + operator and use it to concatenate those strings.
This feature in C++ programming that allows programmer to redefine the meaning of an operator (when they operate on class objects) is known as operator overloading.
OOPS Lecture 15
Video Links -
inline function :
Structure Video Link :
Function Overloading Link :
Default-arguments Concept :
Call By Value , Call By Address , Call By Reference :
OOPS Principles Link :
DBMS Lecture 1 Link :
DBMS Lecture 2 Link :
OOPS Lecture -2 Link :
OOPS Lecture - 3 Link :
DATA STRUCTURES Lecture 1 Link :
Insta Handle : 🔥
Facebook Page : 🔥
0 Comments