| Author |
Doubt in john meyers' question...
|
Gabriel Ozeas
Ranch Hand
Joined: Jul 04, 2008
Posts: 30
|
|
Hi folks, i have a doubt about modifiers in this question from john meyers why the compare method can access t1.x and t2.x if they are private? i compile and run this code but no compiler or runtime error appeared... thxz everyone!
|
 |
chander shivdasani
Ranch Hand
Joined: Oct 09, 2007
Posts: 206
|
|
|
private members of a class can be accessed by the methods of the same class
|
Enjoy, Chander
SCJP 5, Oracle Certified PL/SQL Developer
|
 |
 |
|
|
subject: Doubt in john meyers' question...
|
|
|