This content has been marked as final. Show 5 replies
give your class instance a name and use that to call its methods.
How can i get the instance name in the class constructor ?
Thx for the help!
It worked, but if i create 2 instances of the Class, only 1 works (the last instance). I guess i better redo the class :p
Many thx for the help!
each instance will call its own startTimer() method. if you want only one startTimer() method for all your instances, make that method a static method.