title: ColdFusion Components Inheriting Functions Of Others
body: <p>I have two simple CFCs as shown below:</p>
  
  <p>Test1.cfc</p>
  
  <pre><code>&lt;cfcomponent&gt; 
    &lt;cffunction name="initMethod1" access="private" returntype="boolean"&gt; 
    &lt;cfreturn true /&gt;
  &lt;/cfcomponent&gt;
  </code></pre>
  
  <p>Test2.cfc</p>
  
  <pre><code>&lt;cfcomponent&gt; 
    &lt;cffunction name="initMethod2" access="private" returntype="boolean"&gt; 
    &lt;cfreturn true /&gt;
  &lt;/cfcomponent&gt;
  </code></pre>
  
  <p>During OnApplicationStart() of Application.cfc, I make the following calls:</p>
  
  <pre><code>&lt;cfset application["Test1"] = CreateObject("component","jbx.c.Test1") /&gt;
  &lt;cfset application["Test2"] = CreateObject("component","jbx.c.Test2") /&gt;
  </code></pre>
  
  <p>When I dump the application scope, notice below that both components have their own function as well as the other one's function. Any idea why this is and how to correct it? Thanks. </p>
  
  <p><a href="http://www.signaturehairbyrisa.com/test1.png" rel="nofollow noreferrer">Test 1 Object http://www.signaturehairbyrisa.com/test1.png</a></p>
  
  <p><a href="http://www.signaturehairbyrisa.com/test2.png" rel="nofollow noreferrer">Test 2 Object http://www.signaturehairbyrisa.com/test2.png</a></p>