Fatal Error: ELAB2_0036 Unresolved hierarchical reference to "a.m.send.connect./0/" from module "env" (module not found)

In reply to chr_sue:

but because of the overriding m is not a handle of monitor, its a handle of monitor_2 right now which has an analysis port (look at the code)
I realized that if the derived class has analasys port and the base class doesn’t, I get an error, but if the derived class extends the analasys port from the base class, it works.
can explain why?