Starting a child sequence in parent sequence

Hi All,

I don’t think its possible but even want to know if theirs any other way out.

class main_sequence extends uvm_sequence;
task body;
..part1..
if(call_child==1)`uvm_do(child_Seq);
..part2..
endtask
endclass

where child_sequence is extended from main_sequence.

Thanks!

In reply to stanley_sam:

Why do you think you cannot do this? You might be confusing parent/child relationships in sequences with inheritance. Extended classes should not be called “child”