Please see my comment to the question. I don't think you are ready to do any development at this moment — not just yet. You declare a a variable
m_option1
, which is a stack variable. Not only it is no accessible out of the scope of the stack frame, if does not even exist on exit of the function. Same of different instance of the same of different class, access modifiers — all that is totally irrelevant.
You even tried to add an access modifiers to it. This is that kind of "engineering" when someone kicks a TV set until it starts showing picture. You have no chance. You should understand every single line you write. In this case, the problem is not any detail of syntax or something. It shows that you have no idea what is a variable and what is a function. No more no less. And I cannot explain it in a short answer. You need to grab a manual and start learning programming from the very beginning, this time with full understanding. Solve simple problems, to get a grip on the code.
Unlearn what you have learned.
—SA