title: Creating instance of member variables
body: <p>Hi this is a basic question, but kindly bear with me.</p>
  
  <p>I have two classes and on class has a reference of another class. How can i create the instance of second class which is present in first class at the time creation of instance of first class. Are any utility present for this.</p>
  
  <p>Code ::</p>
  
  <pre><code>class A  {
    B b;
  }
  
  class B {
   int member;
  }
  </code></pre>