Professional Documents
Culture Documents
The properties which are not initialized will take the default values for that
datatype. System verilog performs the automatic memory management for you unlike C+
+ to avoid the memory leaks. System verilog deletes the objects which is no more
accessed in the code. Ofcourse you can not play like C++ pointers with system
verilog class handles.
By default all the class varialbes (properties) are visible outside. We can access
any properties using the dot operator like m1.addr. But if you want to restict the
access from outside you can use the local keyword.