File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes access a private member Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "access a private member" Watch "access a private member" New topic
Author

access a private member

Lee Xu
Ranch Hand

Joined: Aug 24, 2001
Posts: 77
I know that the object can access the private member of another object of the same class, but forget the example. Can someone give a concrete example on this? Thanks.
Amir Ghahrai
Ranch Hand

Joined: Jun 19, 2002
Posts: 110
Try reading the following link, the private section
http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html


Amir
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
Here's a simple example.


Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Lee Xu
Ranch Hand

Joined: Aug 24, 2001
Posts: 77
Thanks for your prompt reply.
Lee
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: access a private member