Hello, everyone. I am very much still a noob programer and was seeking some help with how to access a nested classes data members if the outer class holds a pointer to the nested class.
I have two classes, Job and JobException. if Job receives input that is invalid for costOfJob it creates a JobException and throws it.
The first catch block in the Main function at the bottom of my code is where the problem is. I am not sure of the syntax to access the JobException.*Job.DataMembers or if it is possible.
also when I intialize JobEcxeption, which requires a Job pointer, I use JobException errorJob(this). Is this the correct way to send a pointer of the class you are in to another class?
I'm not opposed to a work around or redoing it if my code is inefficient. Pointers aren't my strong suit. Any and all feedback is appreciated. Thanks for your time.