title: Passing class name as parameter
body: <p>I have 3 classes called <code>RedAlert</code>, <code>YellowAlert</code>, and <code>BlueAlert</code>.</p>
  
  <p>Within my class <code>AlertController</code> I want to have a method like this:</p>
  
  <pre><code>public void SetAlert(//TAKE IN NAME OF CLASS HERE//)
  {
      CLASSNAME anInstance = new CLASSNAME();
  }
  </code></pre>
  
  <p>So for example I want to:</p>
  
  <pre><code>AlertController aController = new AlertController();
  SetAlert(RedAlert);
  </code></pre>
  
  <p>How do you take in the class name as a parameter, and based on that class name create the appropriate object from the class name?</p>