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.

String - is based on a class

Object - is based on a class
Because this can hold anything it is always late-bound

Array - is based on a class

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