SystemVerilog OOP Mastery · All levels
`super`, `super.new`, and Overriding Rules: Pitfalls
Pitfalls for `super`, `super.new`, and Overriding Rules.
Pitfalls and red flags
Treating super.build_phase as optional when the parent performs required setup.
Assuming constructors are dynamically dispatched through base handles.
Changing override signatures and accidentally creating unrelated methods.
Calling child logic before super.new when base initialization is prerequisite.