r035198x,
Works perfect.
Many thanks for this, Mark...
User Profile
Collapse
-
Superclass/subclass as Map element problem
Hi all,
I am trying to declare a Map object with an abstract superclass (TableFields_v2 ) object as follows:-
When I come to create the object element for the Map I want to be able to use a subclass of the superclass for the object; for example:-Code:private Map<Integer, TableFields_v2> elementList;
Where TableFields_v2_ Year is...Code:this.elementList = new HashMap<Integer, TableFields_v2_Year>();
No activity results to display
Show More
Leave a comment: