How can I know the difference between static and a dynamic class handle? An example code, please
@dave_59
Class handles are always references to dynamically constructed class objects. There is no such thing as a static class handle in SystemVerilog.
The variables used to store class handles can have any number of different kinds of lifetimes: static, dynamic, or automatic. This is no different than a variable used to store the value of an integer.
You might want to read my DVCon paper: The life of a SystemVerilog variable