BASIC PROGRAMMING
HOW TO CREATE CLASS IN C++
class operator
{
int x,y,x; (data member)
void accept()
{
cout<<“ENTER ANY TWO NUMBER”,;
cin>>x>>y;
}
void sub()
{
z=x-y
cout<<z;
}
}
void main()
{
operation s;
S.accept();
S.sub();
}