Void Main
Void Main
calculate(); cout<<"Enter one value"<<endl; cin>>x; Arithmetic obj2(x); obj2.calculate(); cout<<"Enter two values"<<endl; cin>>y>>z; Arithmetic obj3(y,z); obj3.calculate(); Arithmetic obj4(obj1); obj4.calculate(); getch(); } Output CONSTRUCTOR & DESTRUCTOR Sum using default constructor a=5 b=10 sum=15 Enter one value 23 Sum using single parameter constructor a=23 b=100 sum=123 Enter two values 12 6 Sum using parameterised constructor having two parameter a=12 b=6 sum=18 Sum using copy constructor a=5 b=10 sum=15