> For the complete documentation index, see [llms.txt](https://andreyakinshin.gitbook.io/problembookdotnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://andreyakinshin.gitbook.io/problembookdotnet/en/oop/inheritancenestedclass-s.md).

# “InheritanceNestedClass” (Solution)

## Answer

```
Foo.Quux()
```

## Explanation

The `Bar.Quux` class is declared in `private` scope, you can't use it from a child class. Thus, the call of the `Quux` method from the `Baz` class will be used the `Foo.Quux` class.

[Problem](/problembookdotnet/en/oop/inheritancenestedclass-p.md)
