# Why do we use the name of body() such as " task body()" inside sequence?

**URL:** <https://verificationacademy.com/forums/t/why-do-we-use-the-name-of-body-such-as-task-body-inside-sequence/34935>\
**Category:** UVM\
**Tags:** UVM, System-Verilog-Virtual-Functions\
**Created:** [August 28, 2018, 12:15pm UTC](https://verificationacademy.com/forums/t/why-do-we-use-the-name-of-body-such-as-task-body-inside-sequence/34935 "2018-08-28T12:15:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 28, 2018, 4:17pm UTC](https://verificationacademy.com/forums/t/why-do-we-use-the-name-of-body-such-as-task-body-inside-sequence/34935/2 "2018-08-28T16:17:19Z")

</div>

_In reply to [UVM\_LOVE](https://verificationacademy.com/forums/t/why-do-we-use-the-name-of-body-such-as-task-body-inside-sequence/34935):_

“body” was the identifier name chose by the person(s) who wrote that portion of the OVM code. This is reference to the “body” of a task or function, which usually means the procedural statements, or executable implementation of the task/function.

A UVM sequence implements the [functor design pattern](https://www.fpcomplete.com/blog/2012/07/the-functor-pattern-in-c) in SystemVerilog. The sequence object is your pointer and the body() is the function reference.

I just answered your second question in [another post](https://verificationacademy.com/forums/ovm/why-task-body-inside-sequence-type-virtual).

---

_[View the full topic](https://verificationacademy.com/forums/t/why-do-we-use-the-name-of-body-such-as-task-body-inside-sequence/34935)._
