Say I have a lot of objects of the same class. I also have a string, which I know is the same as the name of one of the objects. Also, each object has a string variable which is the same as its name. How can I call on the object relevant to the string in my code?
If I have done a poor job in explaining myself, tell me.