| Author |
constructors
|
Puja S
Ranch Hand
Joined: Jan 06, 2005
Posts: 51
|
|
Hi, Constructors can have any access modifiers ( public,protected,default and private ). Can anybody correct me if I'm wrong ? Also, Top-Level class can be public,default,final and abstract. Please correct me if I'm wrong ? Thanks.
|
 |
ankur rathi
Ranch Hand
Joined: Oct 11, 2004
Posts: 3829
|
|
You are correct puja ... one more addition - top-level class may also have strictfp .
|
 |
marc weber
Sheriff
Joined: Aug 31, 2004
Posts: 11343
|
|
Also note that "abstract" cannot be used in conjunction with "final" or "strictfp." (And, of course, "default" is not technically a modifier.)
|
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
|
 |
 |
|
|
subject: constructors
|
|
|