Reference Types

Reference types contain addresses of dynamic blocks of memory that are stored on the Heap
This memory block changes size depending on the applications requirements.
All classes are reference types.
A reference is a variable that refers to the location on the heap
The reference acts like an alias for the object.


These variables are all created using the "new" keyword.


arrayDerived from System.Object
objectSystem.Object
Variant in VBA
stringSystem.String
array
Derived from System.Object
object
System.Object
Variant in VBA
string
System.String


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext