# Set object A into root scope, then get A to object B. If I change item in A, will item in B change meanwhile?

**URL:** <https://verificationacademy.com/forums/t/set-object-a-into-root-scope-then-get-a-to-object-b-if-i-change-item-in-a-will-item-in-b-change-meanwhile/34912>\
**Category:** UVM\
**Tags:** UVM, uvm\_config\_db\
**Created:** [August 24, 2018, 2:02am UTC](https://verificationacademy.com/forums/t/set-object-a-into-root-scope-then-get-a-to-object-b-if-i-change-item-in-a-will-item-in-b-change-meanwhile/34912 "2018-08-24T02:02:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 24, 2018, 6:14am UTC](https://verificationacademy.com/forums/t/set-object-a-into-root-scope-then-get-a-to-object-b-if-i-change-item-in-a-will-item-in-b-change-meanwhile/34912/4 "2018-08-24T06:14:29Z")

</div>

_In reply to [shanshan](https://verificationacademy.com/forums/t/set-object-a-into-root-scope-then-get-a-to-object-b-if-i-change-item-in-a-will-item-in-b-change-meanwhile/34912/3):_

You do not want cloning. And you do not seem to understand the difference between class objects and class handles. Please see [this post](https://blogs.sw.siemens.com/verificationhorizons/2013/07/16/class-on-classes/) and substitute your A/B for my ClassVar1/2.

---

_[View the full topic](https://verificationacademy.com/forums/t/set-object-a-into-root-scope-then-get-a-to-object-b-if-i-change-item-in-a-will-item-in-b-change-meanwhile/34912)._
