0

Do someone know how to store result of vote and display it into other class?

So i made a voting system with 2 button choices. How can i display the result of clicked button into other class like pres1 and pres2 if i click president 1 it should display a a value of president winner in other class

1st Jun 2020, 2:14 PM
Yorokobi💜
Yorokobi💜 - avatar
1 Resposta
+ 1
President winner = president1; OtherClass.setWinner( winner );
1st Jun 2020, 3:03 PM
zemiak