Reference types, Value types, and Patterns
- slide 19 : 29
Examples of Program Organization
A single class in the anonymous default namespace.
Compilation of a single class in the anonymous default namespace.
Two namespaces and a nested namespace with classes.
A client of classes in different namespaces.
An equivalent client of classes in different namespaces - no using clauses.
Compilation of the namespaces and client.
Nested namespaces with classes.
Equivalent program with nested namespaces - no physical nesting.
A client of classes in nested namespaces.
Compilation of the namespaces and client.
Part one of namespace Intro with the classes A and B.
Part two of namespace Intro with the class C.
A client class that uses the classes in namespace Intro.
Possible compilation of namespace Intro and class Client.