![]() ![]() ![]() We can even change the sign of values of an object by using the unary - operator using member function.īut let's see how to achieve the same usingįriend A operator -(A) // Friend function which takes an object of A and return an object of A type. Long will change its value from positive to negative.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |