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.
Implement a class sample with an overloaded + operator.
in C and CPP
in C and CPP
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.