In the following code class B has inherited yay attribute from class A, I expected this. I\'d also expect that inner class B.Foo
B
yay
A
B.Foo
Foo is it's own class. It does not inherit from A. Because of this, it does not have any fields of A. The fact that is nested in a subclass of A does not change anything.
Foo