How to disable super.body in derived sequences from test for some sequences in uvm

Hi ,
We have 3 sequences that are derived from the base sequence. from the test I’m calling these 3 sequences sequentially.
First I will call the child1 sequence. It will do the operation after called super.body.
After completing child1 sequence, I will call child2. but in that, I don’t want to call super.body(). because the super.body is already called in child1 . similarly, I don’t want to call super.body in child3. how to control this in the test.
Please help me with this.

class base
virtual task body();
endtask
endclass

class child1 extends base;
task body();
super.body();

----
endtask
endclass

class child2 extends base;
task body();
super.body();

endtask
endclass

class child3 extends base;
task body();
super.body();

endtask
endclass

Remove the super.body() calls from the extended sequences. Typically, the body() tasks should be standalone and not call any super tasks.

If needed, create some additional tasks in the base sequence that can be called by the extended sequences as required.

Hi… This is an interview question. I can’t remove super.body() in the extended class.

I think you may have misunderstood the question, or not explained it correctly.

It might help to remove UVM from the question and show us the behavior with OOP class methods you are looking for.