i have a static vector of objects of class in which this vector has been defined i have an instance method which takes vector as argument & scans for perticuler object of vector then when i call that method & send static vector as an argument Would it scan the object or all objects would be static... ? thanx in advance
hi ashraf, iam not sure what u are trying to ask, mebbe u shd try providing a code sample, but iam a greenhorn anyways!!! so, mebbe someone else will understand ur q and answer it before me... bhooshan
First, If you have a static vector in your class, and the method is in the same class, you do not need to send the vector to the method as an argument. The method will be able to get at and scan the vector anyway. As long as the instance got loaded to the vector before you call this method, you should be able to locate the reference to the instance in the vector no problem.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Quick! Before anybody notices! Cover it up with this tiny ad:
Gift giving made easy with the permaculture playing cards