Thursday, January 04, 2007

Protected Vs Default Access Modifier

protected - allows classes in the same package and subclasses (in other packages) to still access the methods/variables
Default - allows only classes in the same package to access the methods/variables

No comments: