Hi there, it's me again with another dumb question. The gist of my question is if reference types essentially are made of value types, for example an object may contain integers, booleans and chars. So if everything is made up of value types why do reference types exist then?
Loading
Jaish MathewsPosted Aug 10, 2019, 1:50 AM
Bidyasagar MishraPosted Aug 10, 2019, 11:47 PM
The Reference type variable is such type of variable in C# that holds the reference of memory address instead of value. class, interface, delegate, array are the reference type. When you create an object of the particular class with new keyword, space is created in the managed heap that holds the reference of classes.
Elavarasan RPosted Aug 9, 2019, 9:51 PM