title: C++ constructors take member initializers
body: <p>I want to access constructors member initializes as many required. When class object is initialized by program, the default constructor will be called. so at same time, the constructor call constructor initialize what I mentioned.  </p>
  
  <pre><code>class A {
  public:
      A();
      void fun1();
      void fun2();
  };
  A::A()
      : fun1()
      , fun2()
  {
      cout &lt;&lt; " Hi" &lt;&lt; endl;
  }
  void A::fun1()
  {
      cout &lt;&lt; "Hello" &lt;&lt; endl;
  }
  void A::fun2()
  {
      cout &lt;&lt; "Bye" &lt;&lt; endl;
  }
  int main()
  {
      A obj_a;
      return 0;
  }    
  </code></pre>
  
  <p>Expected result:</p>
  
  <blockquote>
    <p>Hi, Hello, Bye</p>
  </blockquote>
  
  <p><strong>Error message</strong></p>
  
  <pre><code>error: class ‘A’ does not have any field named ‘fun1’
  A::A():fun1(), fun2() {
  </code></pre>