ABTeacher
and ABStudent
is child class of ABUser
And in applyStudentChange
I have Collection<ABStudent> ABStudents
I want to call changeABUser(Collection<ABUser> ABUsers)
in applyStudentChange
but the collection I have got is a collection of child class, how should I call changeABUser(Collection<ABUser> ABUsers)
?
I tried call this waychangeABUser((Collection<ABUser>) ABStudents)
, and this cast does not seem to work...