Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/UVM polymorphism and virtual dispatch

Hardware interview practice

UVM polymorphism and virtual dispatch

EasySystemVerilog OOPSystemVerilog

A base-class handle refers to a derived object, and run() is virtual and overridden. Which implementation is called by handle.run()?

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Choose one

Answer choices

  1. A. Always the base implementation
  2. B. The derived implementation
  3. C. Both implementations in random order
  4. D. Neither; virtual calls are illegal
asic.fyi · Learn silicon end to end.info@asic.fyi