A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Feb 24, 2001
Apr 30, 2001 03:21:00
can we have two toplevel classes,one with protected access specifier and the other with the public access specifier?.
public is very much possible, please tell me about the other class.
Joined: Oct 06, 2000
Apr 30, 2001 08:50:00
No a toplevel class can not be protected.
it can be public,final, abstract or no access modifier.but cant be protected.
I agree. Here's the link:
Protected Access Specifier
protected Vs default access modifiers?
anyone could explain this?
Enum member variable access
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014