A demo code for showing a sample of "Composition" as part of a StackOverflow answer: class name variable in same class not understand concept
Run the project and you will see printed something like the below code, indicating the directory associated to the current directory.
directory 1 > directory 2 > > directory 3 > > > directory 4