# \#create-and-new

**URL:** https://verificationacademy.com/forums/tag/create-and-new/5125.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Create vs new()](https://verificationacademy.com/forums/t/create-vs-new/38393)

<div class="topic-metadata">

**Author:** [@rabh](https://verificationacademy.com/forums/u/rabh)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 5:33pm UTC](https://verificationacademy.com/forums/t/create-vs-new/38393 "2020-11-25T17:33:51Z")

</div>

For classes registered with factory we should be using create() and not new(); but I have often seen new() work out in those cases. Could u elaborate as to what difference will using new() introduce in the following case…

---

## [Covergroup instance creation using create() method](https://verificationacademy.com/forums/t/covergroup-instance-creation-using-create-method/34263)

<div class="topic-metadata">

**Author:** [@anshushr](https://verificationacademy.com/forums/u/anshushr)\
**Replies:** 1\
**Last updated:** [March 28, 2018, 2:36am UTC](https://verificationacademy.com/forums/t/covergroup-instance-creation-using-create-method/34263 "2018-03-28T02:36:10Z")

</div>

Hi, If I have class object extending from ovm\_sequence\_item and I also create a covergroup in the same class. Normally the covergroup instance is new’d in the new function of class. However if the class object is create…

---

## [Difference between function new () and function build()](https://verificationacademy.com/forums/t/difference-between-function-new-and-function-build/30954)

<div class="topic-metadata">

**Author:** [@manavshah33](https://verificationacademy.com/forums/u/manavshah33)\
**Replies:** 4\
**Last updated:** [December 22, 2017, 12:20pm UTC](https://verificationacademy.com/forums/t/difference-between-function-new-and-function-build/30954 "2017-12-22T12:20:44Z")

</div>

Whats is the main difference between function new() and function build? Also can I create instance of sequence item in my uvm\_sequence inside function new()? or it has to be in function build() I am creating instance i…

---

## [What is the use and advantage of create() method instead of new() method while creating a handle of a class?](https://verificationacademy.com/forums/t/what-is-the-use-and-advantage-of-create-method-instead-of-new-method-while-creating-a-handle-of-a-class/32237)

<div class="topic-metadata">

**Author:** [@madhuri89](https://verificationacademy.com/forums/u/madhuri89)\
**Replies:** 2\
**Last updated:** [September 8, 2016, 2:57pm UTC](https://verificationacademy.com/forums/t/what-is-the-use-and-advantage-of-create-method-instead-of-new-method-while-creating-a-handle-of-a-class/32237 "2016-09-08T14:57:23Z")

</div>

m\_env\_cfg = my\_env\_config\_obj::type\_id::create(“m\_env\_cfg”); m\_env = my\_env::type\_id::create(“my\_env”, this); what is the meaning of these two above lines… and why we use this instead of new() method in uvm? and also…

---

## [Uvm\_config\_db inst\_name constructed with names given to objects in new()/create() methods](https://verificationacademy.com/forums/t/uvm-config-db-inst-name-constructed-with-names-given-to-objects-in-new-create-methods/31279)

<div class="topic-metadata">

**Author:** [@Vaino](https://verificationacademy.com/forums/u/Vaino)\
**Replies:** 13\
**Last updated:** [December 17, 2015, 6:50am UTC](https://verificationacademy.com/forums/t/uvm-config-db-inst-name-constructed-with-names-given-to-objects-in-new-create-methods/31279 "2015-12-17T06:50:55Z")

</div>

Hi, I am eager to get a kind of fundamental explanation why the names given to objects in new()/create() methods are used to construct inst\_name instead of object handle names? The inst\_name I am meaning is the followin…

---

## [New() and create()](https://verificationacademy.com/forums/t/new-and-create/30465)

<div class="topic-metadata">

**Author:** [@snayak.aimstechnology.inc](https://verificationacademy.com/forums/u/snayak.aimstechnology.inc)\
**Replies:** 3\
**Last updated:** [March 17, 2015, 12:01pm UTC](https://verificationacademy.com/forums/t/new-and-create/30465 "2015-03-17T12:01:13Z")

</div>

i have understand the new() and create() but confuse about their uses. when and where to use these two. Does it create any problem if i use new () instead create(). thanks surya
