#include <iostream>
using namespace std;

class A{
   private:
   int a,b;
  
   public:
   void show(){
       cout<<"enter value";
       cin>>a>>b;
       cout<<a<<" "<<b<<endl;
   }
    void sum(){
        cout<<"enter value"<<endl;
        cin>>a>>b;
        cout<<"sum"<<a+b<<endl;
    }
};

int main() {
   A obj1;
   obj1.show();
   
  A obj2;
  obj2.sum();
   
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: