title: initialize class array in initialization list c++
body: <p>I have this class:</p>
  
  <pre><code>class Taxi {
     Wheel myWheel[4];
  public:
     Taxi();
  };
  </code></pre>
  
  <p>and Wheel is another class contain:</p>
  
  <pre><code>class Wheel{
     int radius,
         tickness;
  public:
     Wheel(int,int);
  };
  </code></pre>
  
  <p>now, what i want to do is to initialize "myWheel[4]" in initialization list of Taxi constructor, like this:</p>
  
  <pre><code>Taxi::Taxi () :Wheel[0](5,5), Wheel[1](3,3), Wheel[2](5,5), Wheel[3](3,3) {
     cout &lt;&lt; "Ctor of Taxi" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>but it doesn't work and i really need some HELP,
  thanks :)</p>