I managed to get the solution right, but there are things about the code I don't understand. For example, the line: public Woman wife; Is that simply declaring a new variable of type Woman? If so, could this and the code from the solution be combined as: public Woman wife = woman; ? And why in the creating of the class variables for Man and Woman classes does it need to have public used?
public Woman wife;