Timeline for Initializing an array within a class
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 2, 2018 at 15:25 | vote | accept | Matt | ||
| Apr 2, 2018 at 15:24 | history | edited | Matt | CC BY-SA 3.0 |
Corrected a missing "=" sign
|
| Apr 2, 2018 at 14:38 | answer | added | Maximilian Gerhardt | timeline score: 1 | |
| Apr 2, 2018 at 14:05 | comment | added | chrisl |
And in your constructor you declare a new array named snakeBoard which is deleted automatically once you leave the constructor. This array covers up the array declared in the class definition
|
|
| Apr 2, 2018 at 14:03 | comment | added | chrisl |
When initializing an array you need to use an =
|
|
| Apr 2, 2018 at 13:56 | history | asked | Matt | CC BY-SA 3.0 |