# Question on Inheritance in SV

**URL:** <https://verificationacademy.com/forums/t/question-on-inheritance-in-sv/33787>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, Inheritance\
**Created:** [December 6, 2017, 5:18pm UTC](https://verificationacademy.com/forums/t/question-on-inheritance-in-sv/33787 "2017-12-06T17:18:54Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [December 7, 2017, 6:59am UTC](https://verificationacademy.com/forums/t/question-on-inheritance-in-sv/33787/10 "2017-12-07T06:59:19Z")

</div>

_In reply to [srbeeram](https://verificationacademy.com/forums/t/question-on-inheritance-in-sv/33787/9):_

The space for any variable, static or non-static, gets allocated and initialized with its default value in time for you to reference it. SV does not allow you to reference a variable that does not exist.

The variable’s lifetime determines when the optional initialization expression gets evaluated.

static: before any initial or always processes begin  
automatic: upon entering the procedural block where the variable is declared  
dynamic: prior to the body of the class constructor where the variable is declared.

---

_[View the full topic](https://verificationacademy.com/forums/t/question-on-inheritance-in-sv/33787)._
