Basicly, I want to how if it's possible in Java to do following:
public static ArrayList<Script> scripts = new ArrayList<Script>();
scripts.add(new TestScript()); //TestScript extends Script class.
I've tried some different things with type casting, and asking some of my friends. No one seem to have an answer. But I know it would be possible.. maybe? If so, how do I make the above work? If it doesn't, what else can I do to get the same effect?