SystemVerilog OOP Mastery · All levels
Virtual Methods and Override Intent: Pitfalls
Pitfalls for Virtual Methods and Override Intent.
Pitfalls and red flags
Assuming a child method with the same name automatically overrides dispatch behavior.
Marking derived methods but forgetting virtual in the base declaration where dispatch is decided.
Replacing a UVM phase/do_* method without calling super when base side effects are required.
Changing argument lists in a child and expecting it to override instead of defining a new overload-like method.