Hi Dave,
thanks for the reply. i have another question not related to above but regarding your paper “Using parametrized classes and factories - Yin and Yang of object oriented verification”:
On page number 8, there is a factory class defined as below:
class Factory;
Object obj;
virtual function Object create();
// delegate creation to subtype itself
create = obj.create();
endfunction
endclass
Factory factory = new;
obj handle is set to different subtypes of object class in initial block and run() task calls create function of factory, which in turn calls create virtual function of subtype.
What i am not clear about is why should the create() function of factory be declared as virtual. Is it required to extend factory class later for some reason?
Thanks,
-sunil