How to over riding existing method in SystemVerilog

In reply to dave_59:

thanks Dave, but extending the C_generator creates a new class, no?
In that case, I’m not able to override the “super” function, but creating a new function in a new class.
What do you think?