title: Get an already existing object from another class
body: <p>Im very new to programming and want to know if I can somehow get the object from a class where I already used <code>new MyClass();</code> to use it in another class and that I don't need to use <code>new MyClass();</code> again. Hope you get the point.</p>
  
  <p>Some very simple example:</p>
  
  <pre><code>class MyFirstClass
  {
      Something st = new Something();
  }
  
  class Something()
  {
      // some code
  }
  
  class MySecondClass
  {
      // This is where I want to use the object from class Something()
      // like
      getObjectFromClass()
  }
  </code></pre>