Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Please Help  RSS feed

 
ghazanfar khan
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello floks,

I ve some problem, when ever i call class B method "someBMethod" from class A, and i want that at everytime it is call it create new Vector, but it is not doing so, it is adding into first time created vector.


public class A{
B b;

public A(B _b){
b = _b;
}
public void someMethod(){
b.someBMethod();
}

}


public class B{


public (){

}
public void someBMethod(){
Vector v = new Vector();

}


}
 
ghazanfar khan
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i figure it out plz dont reply
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!