title: Create subclass of class template
body: <p>The following working code displays the smaller of two given numbers.</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  using namespace std;
  
  template &lt;class T&gt;
  class Bucky {
  public:
    Bucky(T a, T b) {
      first  = a;
      second = b;
    }
    T smaller() {
      return (first&lt;second?first:second);
    }
  private:
    T first, second;
  };
  
  
  int main() {
    Bucky &lt;int&gt;obj(69, 105);
    cout &lt;&lt; obj.smaller() &lt;&lt; endl;
    return 0;
  }
  </code></pre>
  
  <p>I would like to <strong>derive from class 'Bucky'</strong> and <strong>create a subclass</strong> having a <strong>member function</strong> that displays "Hi There!"</p>
  
  <p>Please help.</p>
  
  <p>P.S. Here is my best failed attempt to create my subclass:</p>
  
  <pre><code>template &lt;class T&gt;
  class mySubclass : public Bucky&lt;T&gt;
  {
  public:
    mySubclass(T a, T b) {  // error C2512: 'Bucky&lt;T&gt;' : no appropriate default constructor available
      //first  = a;
      //second = b;
    }
    void greet() {
      cout &lt;&lt; "Hi there!";
    }
  };
  </code></pre>