Recording a Class Variable in Questasim

Yes, but Questa does not dump classes by default.

See these two sections in the Questa User Manual

SystemVerilog Class Debugging

UVM-aware Debugging