#include <iostream>
using namespace std;
class abstraction{
private:
int a,b;
public:
void set(int x, int y){
a=x;
b=y;
}
void display(){
cout<<"a="<<a<<endl;
cout<<"b="<<b<<endl;
}
};
int main() {
abstraction obj;
obj.set(10,20);
obj.display();
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: