
For the above code to work you need to implement the allocate method in your extended class. The extended class is assigned to the factory before the start_xactor() method is called.
A blog to share my knowledge in ASIC design verification with respect to verification environment architecture, verification methodology, verification languages, protocols & EDA tool evaluations.