O'Reilly logo

Special Edition Using C# by NIIT

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reference Types

Reference types are variables that store references to the data instead of holding the actual data. In other words, when a reference variable is instantiated with some data, it does not store the values. It only contains the storage location or a reference to the data.

The various reference data types, as shown in Figure 5.3, are objects, classes, interfaces, delegates, strings, and arrays.

Figure 5.3. Reference types are classified as Object, Class, Interface, Delegate, String, and Array types.

Objects

System.Object is the ultimate base class. All the data types supported by C# are derived from this class. This derivation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required