| Author |
Very simple question, cant remember answer...
|
SAFROLE YUTANI
Ranch Hand
Joined: Jul 06, 2001
Posts: 257
|
posted

0
|
When you define a member of a class like this... String s; ...what type of scope does the member assume? Private, public, or protected? SAF
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
I believe it assumes public scope to the class and inner classes. ------------------ Happy Coding, Gregg Bolinger
|
 |
Jason Menard
Sheriff
Joined: Nov 09, 2000
Posts: 6450
|
|
|
Package scope, right?
|
Jason's Blog
|
 |
Colin Kenworthy
Ranch Hand
Joined: Aug 06, 2001
Posts: 88
|
posted

0
|
Yes, it has package scope: http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html Package is the default if you do not specify an access modifier.
|
 |
 |
|
|
subject: Very simple question, cant remember answer...
|
|
|