This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
new MyClass->my_method() isn't possible. However, there are a couple of solutions, of which the best seems to be the most unlikely as well. | |
**** | |
Note: Make sure you read/skim to the end, even if you figure out the first solution quickly | |
(which you should). The second solution has a bit of brief research to go along with it! :-) | |
**** | |
At times, it can be useful to have a class that maintains state long enough to complete a | |
cycle, but doesn't get stored in memory. No extra baggage needed, right? |