title: How set field of subclass in composition
body: <p>I want to set text in C class using standard setter but without creating new instance like this:</p>
  
  <pre><code>C c = new C();
  
  c.setText("text")
  
  B b = new B();
  
  b.setC(c);
  
  A a = new A();
  
  a.setB(b);
  </code></pre>
  
  <p>Next i want to use instance of a in some method.</p>
  
  <p>Is there other simplest solution to do that without using constructor?</p>
  
  <pre><code>class A {  
   private B b;
  
  // getter setter }
  
  class B {  
   private C c; 
  
  //getter setter }
  
  class C {  
   private String text;
  
  // getter seter }
  </code></pre>