So I have a class catcat which implements a interface VocalVocal, I was wondering why when iI created a ArrayList(Vocal)ArrayList(Vocal) I was able to add catsinstances of cat to it?
Thank You
So I have a class cat which implements a interface Vocal, I was wondering why when i created a ArrayList(Vocal) I was able to add cats to it?
Thank You
So I have a class cat which implements a interface Vocal, I was wondering why when I created a ArrayList(Vocal) I was able to add instances of cat to it?