Super.build_phase(phase ) usage issue

In reply to Vedant Gala:

In reply to UVM_LOVE:
The super keyword basically refers to the parent class. (Read more on Class Hierarchy, if unaware). Somewhere in the UVM file directory there is a file uvm_agent, which has a function build_phase too; and so when you include this line in your code

 
super.build_phase(phase);

You are basically calling that function inside uvm_agent class.
Why only uvm_agent? Because in your example, the class example_agent extends from uvm_agent.
Correct the typo bui1d_phase and then check for errors.
Also you must have an ‘endclass’ at the end

Thanks for letting me know that. I agree that the super keyword basically refers to the parent class.

So If I use “super.build_phase(phase);” means that I will use the parent class’s item(in this case, it will be “uvm_agent” class, and we assume that build_phase method will be there in uvm_agent class, am I right? )

ncvlog: *E,NOTCLM (my_testbench_pkg.svh,20|22): build_phase is not a class item.

But I didn’t get it exactly what build_phase is not a class item. doesn’t it make sense?
ans also what if the build_phase is not a class item, then what is it?