How to create a parameterized class with the parameter automatically got

In reply to jianfeng.he:

A parameter has to be constant at elaboration. In your approach this is not the case.
BTW extending your driver from uvm_driver parameterized with the seq_item solves your problem.

See here (1) - EDA Playground