0
Please help me to solve this problem i am unable to solve this problem
public integer member variables named "a" and "b", and a public member function named sum() that has no arguments but adds the two member variables together and returns their sum. https://code.sololearn.com/cv8Vc02vMGpB/?ref=app
5 Answers
+ 1
return a + b;
Is it?
+ 1
class Pair {
public :
int a,b;
int sum();
};
int Pair::sum()
{
return a+b;
}
+ 1
PÄ
ľľÄ
vÄ« Thanks a lot this code woRkiNg . Before i was tried but i was unable to getting . Thankyou thankyou sooo much š¤