- #1
FrankJ777
- 140
- 6
I have a question about instatiating a class as static and what that implies. Going through an old project of mine I noticed I did the following:
public static Queue messageBuffer = new Queue();
how does that static instance of the Queue behave compared to one declared without the static modifier? For example:
public Queue messageBuffer = new Queue();
Does it make a difference. I've played with both instances but can't tell the difference, but i want to make sure I know what I"m doing.
Thanks
public static Queue messageBuffer = new Queue();
how does that static instance of the Queue behave compared to one declared without the static modifier? For example:
public Queue messageBuffer = new Queue();
Does it make a difference. I've played with both instances but can't tell the difference, but i want to make sure I know what I"m doing.
Thanks