A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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 Vs default access modifiers?
Enum member variable access
anyone could explain this?
Protected Access Specifier
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014