# Why Parent Component as "NULL"?

**URL:** <https://verificationacademy.com/forums/t/why-parent-component-as-null/37290>\
**Category:** UVM\
**Tags:** UVM, uvm\_component-parent--null\
**Created:** [March 11, 2020, 9:29am UTC](https://verificationacademy.com/forums/t/why-parent-component-as-null/37290 "2020-03-11T09:29:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EnugalaSwetha](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/e/c89c15/32.png) [@EnugalaSwetha](https://verificationacademy.com/forums/u/EnugalaSwetha)\
**Post date:** [March 11, 2020, 9:29am UTC](https://verificationacademy.com/forums/t/why-parent-component-as-null/37290/1 "2020-03-11T09:29:51Z")

</div>

Hi all,  
Can anyone clarify me why do we set **uvm\_component parent = null** in new constructor of components?

Thanks in Advance!!!

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [March 14, 2020, 3:30am UTC](https://verificationacademy.com/forums/t/why-parent-component-as-null/37290/2 "2020-03-14T03:30:19Z")

</div>

_In reply to [Swetha Reddy E](https://verificationacademy.com/forums/t/why-parent-component-as-null/37290):_

Declaring function arguments defaults allows you to call the function without specifying that argument. This makes sense for arguments that are rarely different that the default. But in the case of classes derived from uvm\_component, only the one top-level test component has a null parent. All the other components should provide an actual parent.
