1struct Par
2{
3 int a, b;
4 // constructor base
5 Par() { a = b = 0; }
6 // destructor base
7 ~Par() { cout << "hecho..." << endl; }
8 void setA(int n) { a = n; }
9 void setB(int n) { b = n; }
10 void mostrar()
11 {
12 cout << "a = " << a << ", b = " << b << "; suma = " << a+b << endl;
13 }
14};