title: How to initialize private variable in class in c++?
body: <p>Error is: <strong>data member initializer is not allow</strong><br>
  How to initialize private variable in class in c++?   </p>
  
  <pre><code>class CreditCard 
  {
  public:
      CreditCard();
      CreditCard(int bc);
  
      double getCredLimit();
      double getBalDue();
      int getAccNum();
      double credAvailable();
      int incre_Credit();
      void trans1();
      int cdInc();
      bool addingChrg(double chrgAmt, const std::string&amp; desc);
  
      ~CreditCard();
  
  private:
      int accNo;
      bool err;
      string mssg;
      double dueAmt;
  
      void wtStats();
      void logFl(string qu);
      string credName, credlastName;
      double lim;
      double bala = lim;     //Here i getting error how to solve this
      double payscale;
      double chrg;
  };
  </code></pre>
  
  <p>how to intialize private varable in class in c++;
  and thanks in advance :)</p>