Wednesday, January 24, 2007

Difference between protected and default ?

A default member may be accessed only if the class belongs to the same package, whereas a protected member can be accessed by a subclass even if the subclass is in a different package.

SOURCE : www.referjava.com

No comments: