• Post Reply Bookmark Topic Watch Topic
  • New Topic

Inner classes

 
Arsho, Ayan
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<code>
Hello Everybody ,
Can a non-static inner classes be extended by other classes at all, I suppose static inner classes can be extended right??
Happy new Year
-H
</code>
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Non-static inner classes are only defined by their presence in an enclosing instance. If there's a way to work that to meet your requirements, I haven't figured it out yet. Here's the easier case:

Happy New Year backatcha.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
[This message has been edited by Michael Ernest (edited January 01, 2002).]
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here you can see Bruce Eckel guru doing just that:
http://codeguru.earthweb.com/java/tij/tij0081.shtml#Heading227
A piece of advice. Never inherit an inner from the enclosing one
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!