...
Within the csharp_app_struture
namespace there are now two Person classes available. When you run this program it will print the value 33. The C# compiler resolves to the last seen definition. So the Person definition at line 14 overrides that seen in line 5.
Info |
---|
It’s normal practice to organise your namespaces into separate files and within the same file as shown in the example above |