Lecture overview -- Keyboard shortcut: 'u'  Previous page: Illustration of variables of reference types -- Keyboard shortcut: 'p'  Next page: Comparing and copying objects via references -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 4 : 29
Object-oriented Programming in C#
Reference types, Value types, and Patterns
Overview of reference types in C#

There are other reference types than classes. This page provides an overview of the reference types in C#.

Classes are reference types in C#, but there are others as well

  • Reference types

    • Classes

      • Strings

      • Arrays

    • Interfaces

      • Similar to classes. Contain no data. Have only signatures of methods

    • Delegates

      • Delegate objects can contain one or more methods

      • Used when we deal with methods as data