Protected declaration of variable

hii all,

can u please explain protected declaration of variable with code how its work??

In reply to MCL Saithejeswari:

Please see my short course on using SystemVerilog OOP, especially the second part. BTW, I rarely see people using ‘protected’. Most of the time ‘local’ is what you want to use.

In reply to dave_59:

thank uuu