Implement a class sample with an overloaded + operator.

c) Implement a class sample with an overloaded + operator. Explain the following
statements:
s2=s1+10;
s2=10+s1;
where s1 and s2 are objects of class sample.


Leave a Reply