title: call get methods for different classes behind one another
body: <p>I have a class with name "ConstituentSet". it has one method namely "getNucleusInConstSet()" which the output will be from "Proposition" class . The new Class "Proposition" have another method namely "getProperty()". I want to know what is the Propertry of my "Proposition Nucleus" in class "ConstituentSet". but i do not know how can i do that.
  I wrote as follow but It does not work.  <code>(ConstituentSet.getNucleusInConstSet()).getProperty())</code></p>
  
  <pre><code>public class ConstituentSet{  
      // Constructor   
      private Proposition nucleusInConstSet;       
  
      public Proposition getNucleusInConstSet() {    
         return nucleusInConstSet;  
      }  
  }  
  
  
  
  public class Proposition{       
  
     //Constructor       
     private Property property;       
  
     public Property getProperty() {  
       return this.type;  
     }  
  }
  </code></pre>