Lennie De Villiers
,
Greenhorn
Hi,
The Thread class expect a run() method (no arguments), but how can I let it call a overload method? like run(MyClassName aClass)
Regards,
Lennie
Minhaj Mehmood
,
Ranch Hand
well you can create your own overloaded method.
but how you will tell to thread.start() to execute my own overloaded run method??
by default thread.start() will execute no-arg run() method!
rushikesh sawant
,
Ranch Hand
you have to call overloaded run method on that particular object. it can be done in run() method which the thread recognizes.
Minhaj Mehmood
,
Ranch Hand
yeah you are right rushikesh sawant. now it will become any normal void method
Ulf Dittmer
,
Rancher
Something like this may do what you want:
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com