Re: ArrayList assigned to List
Wednesday, December 14, 2005 04:16 AM
Because A List can be ArrayList, vector, linklist etc.
The caller didn't take care about specific classes, he doesn't know what is the exact implementation of this class.
It's actually the Object oriented design.
'Dependence inversion principle'
means Always depend on abstraction not on the implementing classes.