Polymorphism:
In short: Polymorphism lets the same call run different code depending on the actual object type behind a handle. In SystemVerilog the run-time form uses virtual methods. If a base-class method is virtual, calling it through a base handle that points at a derived object runs the derived version. Once a method is virtual it…
