access modifiers for class members clarified