4
Answers

Public array?

Jonathan Cox

Jonathan Cox

15y
6.2k
1

ok so here is what I'm trying to do.....and im probably doing it a dumb way, but this is my first attempt at any of this so I'm just happy if anything works lol.
I'm trying to make a blackjack game, and I made an array of card classes.
The problem is, I don't know where to actually create the array or how to make it public so that when I click on a button on my form, I can call my array.  I declared it in main, and cant figure out how to access it in my form.  Also I can't figure out how to make it public so I can call it....Any help ?

Answers (4)