C Programming, C++ PROGRAMMING

CREATE CLASS IN C++

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();

Leave a Reply

Your email address will not be published. Required fields are marked *