Loading ...
Sorry, an error occurred while loading the content.
 

Re: OOP question

Expand Messages
  • Erich Ho
    Sorry abount forgetting an example. Anyways, I solved my own problem. Erich ... excute ... When
    Message 1 of 3 , Dec 15 10:39 PM
      Sorry abount forgetting an example. Anyways, I solved my own
      problem.

      Erich
      --- In perl-beginner@yahoogroups.com, "Erich Ho" <erichho91@y...>
      wrote:
      >
      > All,
      >
      > I have a class called account and it has two method new and add.
      > The
      >
      > I created an account object with two variable: name and amt.
      > Creating the object is no problem. The issue here is when I
      excute
      > 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?
    Your message has been successfully submitted and would be delivered to recipients shortly.