If we can use operators like +,/,*,- for common data types like int ,float ,etc ,then why can't we use them for the data types defined by the users ???
That is the main concept behind operator overloading.We can redefine the way in which c++ works .
No comments:
Post a Comment