A
anthony
I came across a some code in a program, the program runs fine but the
syntax of one line is a little strange.
grid.new DataGenerator().start();
The DataGenerator is a timer whos class is in the same file as the grid
class.
I would like to Stop the timer at some point but I don't know how to
reference it when it was created like this?
so,
1. Why does this line even work? (where can I find a description of
this syntax?)
2. How can I reference DataGenerator.stop
Thanks
syntax of one line is a little strange.
grid.new DataGenerator().start();
The DataGenerator is a timer whos class is in the same file as the grid
class.
I would like to Stop the timer at some point but I don't know how to
reference it when it was created like this?
so,
1. Why does this line even work? (where can I find a description of
this syntax?)
2. How can I reference DataGenerator.stop
Thanks