How to use Interrupt inside class

thank you very much