title: parsing a variable from class to class
body: <p>I would like to parse a variable example number from one class to another as show in the code below:</p>
  
  <pre><code>public class Gettemp // is the "public" will affect the passing of variable operation?
  {
      public void temp(string temp)
      {
          temp = "123";  // things that i wanted to pass from this class 
      }
  }
  
  public partial class Form1 : Form
  {
      private void STARTbtn_Click(object sender, EventArgs e)
      {        
          MessageBox.Show() // i wan to show the variables here
      }
  }
  </code></pre>