Professor Hans Noodles
Level 41
Examples of inheritance of nested classes
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
Justin Smith
15 January, 15:23
If you are looking at a situation where you want a class to inherit a nested or inner class, I would suggest the first thing you should consider is that maybe it shouldn't be nested or inner in the first place.
0
Chrisantus Makokha
21 May 2021, 05:44
To be revisited from time to time.
0
Andrei
12 April 2021, 09:26
Man, this was crazy.. Inner classes are so convoluted, like a maze! I wonder if you can hide like viruses or something in them to make them undetectable? lol
0
null
13 August 2020, 21:26
What about the case the inner class inherit nested static class? is it allowed? since nested static has no ref to its outerclass
0
klesk
2 September 2020, 06:44
As far as i understand your question, in this case you don't need a ref to the outer class, because the nested static class exists without the "need" of an outer class. So, despite the fact that you inherit a static class, the inner class doesn't get become static itself.
+4