this inheritance program is giving me problems about decleration on lines 17 and 20.
---------------------------------------------------------------------------------
#include <iostream.h>
#include <string.h>
class Pair {
public:
Pair (int num1, int num2) {
aNum1 = num1;
aNum2 = num2;
}
Pair () {
aNum1 = 0;
aNum2 = 0;
}
void output () {
cout << aNum1 << " " << aNum2 << endl;
}
setNum1 (int num) {
aNum1 = num;
}
setNum2 (int num) {
aNum2 = num;
}
private:
int aNum1;
int aNum2;
};
main () {
Pair numPair (12, 34);
numPair.output ();
numPair.setNum2 (21);
numPair.output ();
}