Howdy everyone!
My name is Martin as you can see to your left, and I'm new to JavaRanch. I've been spying in on some topics, and finally have a question of my own, so I thought I'd give it a shot
)
I have seen numerous declarations such as this...
I guess my brain just isn't processing how you can have an object reference, "in", be an InputStream, but give it a new FileInputStream at the same time?
My only thought is that FIS is a subclass of IS, but it still just isn't clicking to me (and until it does, it's going to bug the heck out of me, and confuse me).
If at all possible, could someone explain the theory behind such a declaration as above? Thanks, and I hope to help others in the future as I learn more!
)
Martin