You have two different things.
First class example script :
You have an inner class with 3 nested private classes
In your second script, namespace example :
You have 3 internal independent classes without nesting.
If classes should only be used in StructuralCase , use the first example; otherwise, if the classes are independent and not related, the namespace is a way forward.
source share