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

12th Dec 2020, 4:59 PM
Om Sri
5 Answers
+ 1
return a + b; Is it?
12th Dec 2020, 5:06 PM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 1
class Pair { public : int a,b; int sum(); }; int Pair::sum() { return a+b; }
12th Dec 2020, 7:50 PM
Jayakrishna šŸ‡®šŸ‡³
+ 1
PąľľąvÄ« Thanks a lot this code woRkiNg . Before i was tried but i was unable to getting . Thankyou thankyou sooo much šŸ¤—
13th Dec 2020, 4:48 AM
Om Sri