#include <iostream>
using namespace std;
class calculator{
public:
int setadd(int x,int y){
answer=x+y;
}
int getadd(){
return answer;
}
private:
int answer;
};
int main(){
calculator bo;
bo.setadd(30,7);
cout<<bo.getadd();
return 0;
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.