== Compliant Solution

----
class Account /* Compliant */
{
public:
  Account()
  {
    balance = 0; /* Ensures the balance is initialized with zero */
  }

  void credit(int amount)
  {
    balance = balance + amount;
  }

private:
  int balance;
};

/* ... */
----