Hello, Ranchers
I went back few pages from the headfirst
java book and tried a couple of excercise there.
On page 193 I tried to compile the correct code in the excercise on the compiler and I got:
non-static variable this cannot be referenced from a static context
The code is:
How do you make the following static?
Monster [] ma = new Monster[3];
ma[0] = new Vampire();
ma[1] = new Dragon ();
ma[2] = new Monster ();
I tried adding static in the beginning of each and that didn't work
Thanks in advance!