Professional Documents
Culture Documents
Introduction To Programming
Introduction To Programming
Lecture 32
In Last Lecture
– What is operator overloading ?
– Overload operators
We also saw the
– Binary Operators
– Unary Operators
– Member and Non-member
operators
Example
Date d1 , d2 ;
if ( d1 > d2 )
Example
Date date ;
date + 5 ;
Example
5 + date ;
Interface