Thursday, August 2, 2007

Object Property

Variables of the class are related to the object of the that class irrespective whether those are private,public or protected. This is because we can make use of the variables of other class in our class by using the . .
Similar to this we can access non static methods using the object of that respective class, thus these are also related to objec property of class.
We Know that static inner class not related to the object property of enclosing class.Thus we can not have access inside static inner classs of the nonstatic methods and non final variables of the enclosing class.
by,
Mangesh S.S.Waghaye.

No comments: