I am new to verification domain, specifically UVM testbench environments. I want to know the difference between new() and create (factory method). I know create method helps in factory overriding. If that’s the case, why do we still use new() as the boiler plate constructor code for components?
You should always invoke create to create a component in the build phase. However, in the class declaration of your derived component, you will override the new constructor. The create function invokes the class constructor (new).