title: Update: Override method from custom control on user control
body: <p>good morning. </p>
  
  <p>this is something that I'd like to achieve. </p>
  
  <p>for <code>CustomControlA</code>, I have </p>
  
  <pre><code>public void OverrideableMethod()
  {
  // some codes here
  }
  </code></pre>
  
  <p>and I have <code>UserControlB</code>. 
  I would like to "override" the method from <code>CustomControlA</code> on <code>UserControlB</code>. <strong>is this possible? if it is, how to?</strong></p>
  
  <p>the best thing I can come up is to create a method of the same name on <code>UserControlB</code> and invoke <code>CustomControlA.OverrideableMethod()</code> from there. </p>
  
  <p><hr />
  <strong>Update:</strong>
  <em>Thanks for the answers, I appreciate them.</em> </p>
  
  <p>the code is something like this:</p>
  
  <pre><code>public class CustomControlA : CustomControl
  {
      public virtual void OverrideableMethod()
      {
          // do something
      }
  }
  
  public class UserContorlB : System.Web.UI.UserControl
  {
      protected CustomControlA someVariableForCustomControlA;
  
      // here lies the problem, on how to override CustomControlA.OverrideableMethod() here
      // without inheriting CustomControlA itself
  }
  </code></pre>
  
  <p>here lies to problem. as much as possible, I'd want to keep away from inheriting CustomControlA, for reasons allowing <code>UserControlB</code> to inherit one more base class. 
  <strong>is this possible to override <code>CustomControlA.OverrideableMethod()</code> given the scenario above?</strong></p>