Unable to access class properties in a UVM factory overriden class

In reply to peterjin:

Use access method which makes use of polymorphism to get sequencer according to objects you create.

Even if you have override and create extended class objects, parent handle still remains same. And using parent handle you can only access parent properties or functions and extended class functions if virtual.

Access m_seqr like this,

class A;
  my_seq m_seqr; // Class A property
  //Create object for m_seqr
  //..

  virtual function my_seq getSeq();
    return m_seqr;
  endfunction
endclass

class B extends A;
  my_seq m_seqr; // Class B property
  //Create object for m_seqr
  //..

  function my_seq getSeq();
    return m_seqr;
  endfunction
endclass

Issue is not with declaring same handle name m_seqr in both the class. But it’s how inheritance works when using parent=child handle assignments.