Hi, I was wondering if it is possible to initialize a field as argument?
What i want to do:
Armor:
a method that just returns the long ID
See the reason i cant do it in the constructor itself is because it inherits from a class called Items, and in a method in items i need the ID, Since a super() has to be first line i have a problem.
What i thought about doing:
making wantedID a field in armor and:
this doesnt work though but if somehow i can do it before the constructor of item is executed my problem would be solved
Item:
So it comes down to, i need a method generateID() in my class armor that just returns the wantedID
Any help would be greatly appreciated! Thanks in advance
Kenny