There are two main types to access memory reference and value.
  • Reference type refers to an object in memory by its address.
  • Value type it is a n actual block of memory reserved for the object that was just created.
C# has reference and value types.C++ has a further clarification referring to constant and non constant.Golang does not have reference types.