Parent parameter for new function in agent class

,

In reply to dave_59:

In reply to verif_learner:
The env class object gets passed as an argument when calling the new() constructor. But no class derived from uvm_component is required to have a parent.

The following is what I see in UVM reference guide.

Creates a new component with the given leaf instance name and handle to its parent. If
the component is a top-level component (i.e. it is created in a static module or
interface), parent should be null.
The component will be inserted as a child of the parent object, if any. If parent already
has a child by the given name, an error is produced.
If parent is null, then the component will become a child of the implicit top-level
component, uvm_top.

If I am new’ing agent class then it looks like i need to pass env class as the parent.
Maybe there is no major issue if I keep it null but are there any implications.
For example, if I use get_parent or get_full_name for this class then I assume, I get a wrong answer. Any thoughts?