Omitting the initializer list entry for data member object
<p>I have read that it is highly recommend that all data members, regardless of type, are initialized when a class is created and that the initializer list of the constructor is the best place to do this.</p>

<p>What about data members that are objects? Assuming that object has a default initializer that suffices,  is it considered good practice to omit them from the initializer?</p>

<p>Such as:</p>

<pre><code>class A{
private:
  AnotherClass B;
  int x;
public:
  A():x(5){} //B is never explicitly initialized
};
</code></pre>
