Operator Overloading with Addition Operator
This video tutorial introduces you to the concept of operator overloading in c++ programming.
You will learn what is operator overloading, what are operator methods, what is the syntax to overload operators, how to overload the addition operator, how to define the operator function as a class member, how to use the overloaded operator in detail with example.
source code for this tutorial
#includeusing namespace std; class Marks{ int intmark; int extmark; public: Marks(){ intmark = 0; extmark = 0; } Marks( int im,int em){ intmark =im; extmark = em; } void display(){ cout << intmark<