# <span class='text-muted'>128.</span> A derived type component can have a default value.

<span style='font-size: small;' class='text-muted'>topic: {ref}`derived-types`</span>

```{note}
This tip is a draft[^draft].

[^draft]: From the perspective of FortranTip Browser, "draft" means that
  it hasn't been edited for formatting,
  hasn't had corresponding Fortran programs added,
  the text content hasn't been enhanced, etc.
  Draft texts are extracted from the corresponding Tweet using the Twitter API.
```

If a derived type component is given a default value, the default constructor can be called without setting that component, which takes that value.


---

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">If a derived type component is given a default value, the default constructor can be called without setting that component, which takes that value.<a href="https://t.co/xQ8uWiZU52">pic.twitter.com/xQ8uWiZU52</a></p>&mdash; FortranTip (@fortrantip) <a href="https://twitter.com/fortrantip/status/1495001410894811139?ref_src=twsrc%5Etfw">February 19, 2022</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>