| | |
Working with objects of different Classes
![]() |
Ok, this is an extremely stupid question, and I feel retarded for asking, considering how much I've been studying Java. But anyways, here goes.
Let's pretend I've created three classes, Class A, Class B, and Class C. Now in A I create an instance of Class B, let's call it AB. And I modify AB's variables, and invoke methods on it. Object AB holds valuable info, say for a database. Now in C I create another instance of Class B, I'll call it CB. From class C, is there any way I can specific information, such as instance vairable values and other such things of object AB (in class A)?
That's my quesiton. Thanks for any help
Let's pretend I've created three classes, Class A, Class B, and Class C. Now in A I create an instance of Class B, let's call it AB. And I modify AB's variables, and invoke methods on it. Object AB holds valuable info, say for a database. Now in C I create another instance of Class B, I'll call it CB. From class C, is there any way I can specific information, such as instance vairable values and other such things of object AB (in class A)?
That's my quesiton. Thanks for any help
![]() |
Similar Threads
- "official" geometry library/classes (C++)
- Working with multiple classes (C++)
- Classes - Basics - Starting ... implementation (C++)
- Problem with arrays or objects and classes (C++)
- help with MySQL (ASP.NET)
- Having problems saving objects into an array, then accessing the data later for repo (Java)
- Getting started in programming (Computer Science)
- Classes (C++)
Other Threads in the Java Forum
- Previous Thread: String Tokenizer Help
- Next Thread: Converting arrays to link lists
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card class classes client code collision columns component constructor crashcourse database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javadoc javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle physics plazmic print problem program project radio recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree trolltech unlimited utility webservices windows





