K
K Viltersten
I've placed all my constants in a class
called Donkey (since it's carrying all
the stuff). When i'm creating an array,
i get the info for the size from there.
int[] arr = new int[Donkey.FIX_VALUE];
Now, it's a little bit tedious and less
readable so i'd like to make "Donkey"
implicitly found.
After some laborating with "using" i've
gave up. How can i set up my Donkey so i
only need to go like this.
int[] arr = new int[FIX_VALUE];
I'm thinking of the same way as one can
get rid of the constant "System" in
System.Console.Write ("donkey");
by applying "using System;" and then
refering to the package right off.
Console.Write ("donkey");
Of course, it't not exactly equivalent
but i'm having hopes for it anyway.
called Donkey (since it's carrying all
the stuff). When i'm creating an array,
i get the info for the size from there.
int[] arr = new int[Donkey.FIX_VALUE];
Now, it's a little bit tedious and less
readable so i'd like to make "Donkey"
implicitly found.
After some laborating with "using" i've
gave up. How can i set up my Donkey so i
only need to go like this.
int[] arr = new int[FIX_VALUE];
I'm thinking of the same way as one can
get rid of the constant "System" in
System.Console.Write ("donkey");
by applying "using System;" and then
refering to the package right off.
Console.Write ("donkey");
Of course, it't not exactly equivalent
but i'm having hopes for it anyway.
