I'm a beginner in programming and I've read several tutorials. I'm still unclear about the following:
When clicking on a button, that event creates an instance of a class:
private void button2_Click(object sender, RoutedEventArgs e)
{
int a = 1;
myClass test = new myClass(a);
}
myClass is doing a long processing job (several minutes). If I click 5 times on my button, is it gonna create 5 instances? Or is the "test" going to be "overwritten" 4 times?
Thanks