Sorry if this is really simple, I'm pretty new to coding. I'm trying to initialize an object through a constructor with a string as a parameter type and my program doesn't want to recognize the string argument I declare in the object as a string. Sorry if I worded it in a confusing way, my code will hopefully help clarify what I mean:
I hope that's the only part of the code I need to post considering the actual code length is around 400 lines. The error I'm getting is "error: 'Darth' not declared in this scope". Is there any way to fix this? Thanks in advance!