So I just started learning classes today and here is the code I am working on. I am supposed to implement a class holding name/age pairs. Then have an input operation for names and an input operation for ages. The program runs and compiles but it doesn't allow for input, the programs just runs to the end.
My book doesn't really have a lot of good examples on classes, especially on implementing them in the code.
If I understand instance variables correctly, that they are variables which will have different values for each object, then I did that because in my text some examples were like that. Upon reading some other books, I have changed it to: