Meaning of Handles and Objects

In SystemVerilog a handle variable holds an reference to an object

In the below example handle is defined but not constructed

             animal     a_h ;    // Here handle is defined but the objects are null

             a_h      =  new() ;   // Here the Handle is created using new() 

 once the handle is created, internally it will create the objects  by alloting new memory locations

Comments