How to call a public void from a private class : <p>So i'm trying to make a rock paper scissors game for school and the teacher doesnt help me or answer my questions, so if someone can help me that would be great</p>

<p>so i need to disable the buttons after the user has pressed them and i have done so like this:</p>

<pre><code>public void TurnOffButtons()
{
myRock.disable();
myScissors.disable();
myPaper.disable();
}
</code></pre>

<p>myRock, myPaper and myScissors are the button names</p>

<p>i have 3 different private classes, which run whenever the user presses the buttons, and i want to call the method TurnOffButtons in these classes to temporarily disable them so that the user cannot keep pressing them before pressing new game where the buttons are then re enabled (this prevents the user from continuously winning) </p>

<p>my question is how do i call them? i tried using this line of code:</p>

<pre><code>new TurnOffButtons();
</code></pre>

<p>but it gave me an error 
if anyone could help that would be amazing</p>
