Can I call a member function inside of another member function if they are apart of the same class?
Essentially, I need to update a private variable accountBalance with a public creditBalance member function. I am curious if I can call a getBalance function (another public member function which returns the value of the private variable accountBalance) within the creditBalance function. That way I can store the value from getBalance in a local variable, add the credit amount to it and then update the accountBalance variable.