Lecture overview -- Keyboard shortcut: 'u'  Previous page: Examples of Program Organization -- Keyboard shortcut: 'p'  Next page: Namespaces and Assemblies -- 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 20 : 29
Object-oriented Programming in C#
Reference types, Value types, and Patterns
Namespaces and Visibility

Which kinds of visibility apply for types and namespaces in namespaces?

  • Types declared in a namespace

    • Can either have public or internal access

    • The default visibility is internal

    • Internal visibility is relative to an assembly - not a namespace

  • Namespaces in namespaces

    • There is no visibility attached to namespaces

    • A namespace is implicitly public within its containing namespace