Classes and Objects
- slide 21 : 29
Overview and clarification of some visibility issues
Types in namespaces
Either public or internal
Default visibility: internal
Members in classes
Either private, public, internal, protected or internal protected
Default visibility: private
A type T can be less accessible than a method that returns a value of type T
An illustration of the 'Inconsistent Accessibility' problem.
Solution to the problem.