class_declaration ::=
{ attribute_instance } [ virtual ] class [ lifetime ] class_identifier [ parameter_port_list
]
[ extends class_identifier [parameter_value_assignment ] ]
; [ timeunits_declaration ] { class_item }
endclass [ : class_identifier]
Arithmetic operations (such as incrementing) |
Allowed |
Not allowed |
Not allowed |
For arbitrary data types |
Allowed |
Not allowed |
Not allowed |
Dereference when null |
Error |
Not allowed |
Not allowed |
Casting |
Allowed |
Limited |
Not allowed |
Assignment to an address of a data type |
Allowed |
Not allowed |
Not allowed |
Unreferenced objects are garbage collected |
No |
Yes |
|
Default value |
Undefined |
null |
null |
For classes |
(C++) |
Allowed |
Not allowed |