posted 17 years ago
hi As Angel....
a class is an abstract model of a set or a group of things, having a basic set of qualities or properties....
you create instances of objects using the constructors provided by the class.
now...
any such class, if it has another class declared inside its signature... then the class declared inside is called the Inside class or the Inner class.
i.e., any class that is declared inside the curly braces of a previously declared class, is called the inner class to the outer class...
if you declare any new class outside the curly braces of an old class, then the class is not an inner class to the old class...
but if you declare this new class as...
then the newClass is a subclass of the oldClass... not an inner class of the
oldClass....
now ....
about instance variable's........
instance variable's belong to the Object created using the operator....
Instance variables are given default values..... irrespective of where its parent class has been declared....
the point is that they will always be auto initialized....
but local variables are not auto initialized....
understand....