Static variable inside a non static function

In reply to kernalmode1:

Variables declared inside a class method have lifetimes unrelated to the class they are declared in. Please see automatic variables inside static method | Verification Academy