| Author |
K&B: Classes can have only public or default access
|
Mohammad Khan
Ranch Hand
Joined: Sep 23, 2008
Posts: 37
|
|
in K&B (310-065) page: 68 Chapter 1: Declaration and Access Control TWO-MINUTE DRILL states that "Classes can have only pubic or default access" I think, this is true for outer classes but not for inner classes. Thanks, Mohammad
|
 |
M Srilatha
Ranch Hand
Joined: Aug 27, 2008
Posts: 137
|
|
Yes you are right! If you see the section on Class Declarations and Modifiers in Chapter 1, it is clearly mentioned that inner classes will be discussed in a later chapter. And in chapter 1, only outer classes are considered.
|
Thanks,<br />Srilatha M
|
 |
 |
|
|
subject: K&B: Classes can have only public or default access
|
|
|