Can anyone help me check my work?

These are my homework questions. I have attempt to do most of it and I need somebody to check to see if im doing this right.

1. Given the following declaration for a TestScore class, write a derived class declaration called IDScore that adds an integer student ID number as a private member, and that supplies (1) a constructor whose parameters correspond to the three member fields, and (2) an observer that returns the ID number.

Close. (And in the future, please use [ CODE ] tags around your code -- select a code segment and click the button/icon at the top of the editor.)

In part 3, remember which class you're providing the implementation for. Then, how are the studentName and studentScore going to get initialized in the constructor (hint: you should be re-using the existing constructor as appropriate).

Also, if you want to know if your code is correct, add a

int main ()
{
...
return 0;
}

block somewhere, have it create a couple of instances of your class, and print the values returned from the observer-methods. If the code compiles and your tests print out the same values that you passed to the constructors, then your code is minimally correct. If it won't compile, the compiler error messages tell you exactly what you did wrong, and often enough where in the code the mistake is (other times, only where the compiler couldn't figure out what to do next, and the actual error might be a ways back). If it doesn't print the correct values, you need to go back and see why not.