here is the original code
when I try and use the object returned by the method I can only use methods from the student class instead of it's subclasses. I am putting objects of type Undergraduate and Postgraduate in the HashMap. I cannot see this to be a problem even though the HashMap is declared HashMap<
String,Student>, As I understand it, poloymorphism should let me do this.