How could I call module task in class task member?

In reply to Jules:

You need to define your class in a module or extend it in module to have hierarchical references. If you can explain more of what you ultimately want to do, we will be better able to make a suggestion.

You may want to look at this recent thread: Creating a UVM agent for an existing task based BFM | Verification Academy