Finished inheritance.c++