File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in accessing member variables of called object

 
sridevi kumar
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Suppose there are two classes Server and B.

Could anyone help me to fix this problem. I have similar problem at work. Thanks a lot...
[This message has been edited by Cindy Glass (edited November 01, 2001).]
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming they are in the same package, hence visible to each other, create an instance of the Server class in your method and use it.
Server s = new server()
String str = s.getStatus()
s.setStatus("someString")

Bosun
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic