In reply to logie:
Thanks for the reply. In this case, it is not required. Because uvm_sequence_item is having no property; it's a base class. But in such a situation where we have called a class (stimulus2) that is the grandchild of uvm_sequence_item and its (stimulus2) parent class (stimulus1) is having some extra properties, we need to call super.do_copy. Did I get this correct?
I have one more doubt and it's regarding SV and UVM testbench. In SV, we generally import pkg inside the test file and we include the test file in the top module. On the other side, in UVM we include the test file along with other component and object files inside pkg and we import that pkg into the top module. Is it necessary to follow this flow?
1) In SV, can we not add the test file to pkg and that pkg gets imported to the top module?
2) In UVM, can we not add the test file to the top file and import pkg to the test file?