Results 1 to 3 of 3
- 10-30-2010, 12:35 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
Recalling an object from an external class
Hello everybody,
I'm writing a method M1 inside a class A that needs to act on a vector defined in a different class B (the one with the main method). Is there a way to recall the vector defined inside B to be edited inside A?
The method M1 is called inside the class B as the result of an If clause.
Thanks in advance for the helpfulness
-
Why not simply pass the Vector into the method as a parameter?
- 10-30-2010, 12:51 PM #3
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Create object of unknown class, based on existing object
By Zack in forum New To JavaReplies: 2Last Post: 06-22-2010, 04:29 AM -
Dynamic Class Loading from external Jar
By AndreB in forum Advanced JavaReplies: 3Last Post: 02-08-2010, 01:55 PM -
Run external programs using runtime class
By JBird in forum New To JavaReplies: 3Last Post: 08-06-2009, 02:37 AM -
Problems adding an external class
By jan2321 in forum EclipseReplies: 2Last Post: 11-06-2008, 10:34 AM -
Creating object of Type Object class
By venkatv in forum New To JavaReplies: 3Last Post: 07-17-2007, 03:33 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks