Ok I am making a simple program that deals with inheritance. The program basically works except for when I output the names of the god and the person it puts out 50 characters with the last being the names that the user input. I am not sure what to do in order to fix this.

do you actually transfer the string to the class? you're inputting the two names, and printing the class names, but you never link the input to the classes. the fact that you actually see the names somewhere is just luck.