CodeGym
Promotion
CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Start learning now
  • Articles
  • Authors
  • All groups
  • All Articles
Professor Hans Noodles
Level 41
  • 26.03.2020
  • 2989views
  • 5comments

Examples of inheritance of nested classes

Published in the Java Developer group
members
+19
Comments (5)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 31 , Greenfield, USA, United States
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
Level 32 , Nairobi, Kenya
21 May 2021, 05:44
To be revisited from time to time.
0
Andrei
Level 41
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
Level 26 , Orlando, United States
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
Level 31 , Duisburg, Germany
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
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning and Java developer’s career.
Follow us
Interface language
Programmers Are Made, Not Born © 2022 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2022 CodeGym
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.