ref to eda link
what is the difference if we declare a class handle as rand or not
thanx in advance
ref to eda link
what is the difference if we declare a class handle as rand or not
thanx in advance
In reply to nimmy_248:
If you use rand keyword for class handle and it’s pointing to object , then call of randomize() function of parent_class ( in your case ‘a’) will randomize its variable and rand handle’s object too.
In reply to nimmy_248:
In your example it makes no difference; you are not randomizing the class object obj. The rand qualifier only affect the class variables in the object you call randomize on.