How to access base class task with local key from child class?

Hi All,

I want to access base class task with local keyword from child class. The base class is extends from uvm test. My thought is we can’t access local task from any child class. We should modify that task to global, then only we can access anywhere. So, can you explain for this doubt? Have any method to access for this kind of situation?

In reply to SelvamVeluraj:

Do you mean you have a base class with a task declared with a local qualifier?

class base;

  local task t;
     ...
  endtask

endclass

The local qualifier keyword is there to prevent anyone from calling the task t from and extended class or or from outside the class object. You need to ask the person who wrote that code need why they needed to use that qualifier. The protected qualifier keyword will allow you to access the task from a extended class, bot not from outside the class object.