title: How to initialize variable of another class in java?
body: <p>I have two classes, one is people and 2nd is the person now I have made people class as a data type in the person class and variable name is the position</p>
  
  <pre><code>public person
  {
    people position; 
  }
  </code></pre>
  
  <p>now how can I use this position variable and what type of data can be used to initialize this variable.</p>