A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jun 05, 2000
Jun 08, 2000 00:12:00
How is an inner class diferent from a subclass in terms of:
Whether an inner class can extend any other class?
Can it be declared static,private?
Joined: May 06, 2000
Jun 08, 2000 00:30:00
An inner class
--- is a class which is defined inside another class
--- can be static as well as private
--- can extend a class or implement an interface
--- it can access all the members of enclosing class (including private memnbers)
Joined: May 09, 2000
Jun 13, 2000 18:17:00
Also would like to add
* All non static nested classes are called inner classes.
I agree. Here's the link:
subject: Inner class
doubt on Inner class
is inner class can be static . what is the purpose of inner class ??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015