operator overloading in c++

5,767 views

Published on

This presentation includes 7 programs, in which 5 are basic arithmatic (binary) operator overloading and 2 are the unary operators( increment and decrement) overloading.

Published in: Education, Technology, Sports
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,767
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
201
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • Here the contents of object s and t are added thus + operator is overloaded
  • Here b is an integer type variable it is deducted from a which is held by object thus – operator is overloaded.
  • operator overloading in c++

    1. 1. Arithmetic operators overloaded using memberfunction of a class must have one argument as object of class. Arithmetic operators overloaded using friendfunction of a class must have two argument.

    ×