Re: OOP question
- Sorry abount forgetting an example. Anyways, I solved my own
--- In email@example.com, "Erich Ho" <erichho91@y...>
> I have a class called account and it has two method new and add.
> I created an account object with two variable: name and amt.
> Creating the object is no problem. The issue here is when I
> the add function. The add function adds 15 to variable amt.When
> the add function is done and returns to the main program. It
> forgets the vaule of the name variable. What am I doing wrong?