P
Pujo Aji
I have a problem with an object calling outside method:
Forexample in the main part I have an object and the object will do
something time independent, and after it is finished working it should
call outside function.
How can I do that?
public static void Main() {
mycls m = new mycls();
m.run();
}
public static void DoNext (){
//dosomething
}
class mycls {
public void run(){
//do something time independent
//Need to call DoNext !!!Problem
}
}
Pujo
Forexample in the main part I have an object and the object will do
something time independent, and after it is finished working it should
call outside function.
How can I do that?
public static void Main() {
mycls m = new mycls();
m.run();
}
public static void DoNext (){
//dosomething
}
class mycls {
public void run(){
//do something time independent
//Need to call DoNext !!!Problem
}
}
Pujo