# Assignment of handles from paper " Yin and Yang of Obj Oriented Verification "

**URL:** <https://verificationacademy.com/forums/t/assignment-of-handles-from-paper-yin-and-yang-of-obj-oriented-verification/39059>\
**Category:** SystemVerilog\
**Tags:** Assignment-of-handles-from-paper, SystemVerilog\
**Created:** [May 8, 2021, 6:53pm UTC](https://verificationacademy.com/forums/t/assignment-of-handles-from-paper-yin-and-yang-of-obj-oriented-verification/39059 "2021-05-08T18:53:46Z")\
**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:** [May 9, 2021, 3:42pm UTC](https://verificationacademy.com/forums/t/assignment-of-handles-from-paper-yin-and-yang-of-obj-oriented-verification/39059/2 "2021-05-09T15:42:12Z")

</div>

_In reply to [Etrx91](https://verificationacademy.com/forums/t/assignment-of-handles-from-paper-yin-and-yang-of-obj-oriented-verification/39059):_

I believe you have found a few deficiencies in the LRM. I believe the intent is that class parameter overrides should work the same as module parameter overrides (See section _23.10 Overriding module parameters_ in the  
[IEEE 1800-2017 SystemVerilog LRM](https://ieeexplore.ieee.org/document/8299595).

That says overriding an untyped values parameter takes on the type of the final override.

Then section 8.25 say that a class specialization is defied by value parameter when both their type and their value are the same. But it really should to use the matching type rules in section _6.22.1 Matching types_.

Unfortunately, I tried this on four different simulators on EDA playground and got four different results with the unsuccessful cases 2 &4.

You can avoid this ambiguity by declaring the base class perimeter with an explicit type.

```verilog
class Base #( int PARAM = 10 ) ;
endclass

```

---

_[View the full topic](https://verificationacademy.com/forums/t/assignment-of-handles-from-paper-yin-and-yang-of-obj-oriented-verification/39059)._
