Define your classes in a common package and import the package in each separately compiled unit. Please see SystemVerilog Coding Guidelines: Package import versus `include - Verification Horizons
Define your classes in a common package and import the package in each separately compiled unit. Please see SystemVerilog Coding Guidelines: Package import versus `include - Verification Horizons