Why we need to register with factory to override an object? - C++ also has override feature, but there is no factory!?!

Guys,

During our internal discussion, we got an question that why do we need to register with factory to override an object?

C++/JAVA doesn’t use any factory, to override an object.

John

The factory is certainly used in C++/Java, it is one of the basic design patterns in software design. I also wrote a DVCon paper about how it works in SystemVerilog just prior to the release of OVM.