Friday, March 26, 2010

9 - static

a) static methods when being redefined their visibility cannot be reduced.

b) Inside static methods super cannot be used. But inside non static method you can use super to call a static super class method.

c) static methods are inherited.

d) if a class has defined a static method or has an inherited a static method, then a nonstatic method with same name in the that class is not possible.

No comments:

Post a Comment