Online Resource for Learning About Polymorphism?
I'm developing an Android app right now, and it has a long if/else chain in it for handling a queue of BarStack API calls. Knowing that there would be no real performance benefit to using switch/case in place of if/else, I was still curious to know if/why one would be slightly faster than the other.
One answer on StackOverflow suggested that Polymorphism would be a beneficial pattern for increasing the readability and maintainability of the asker's code. In the long-run readability and maintainability of code are often far more important than performance. I've found that tuning is usually only necessary when performance issues actually occur. (Thank the silicon gods for modern processors :)
I know Polymorphism is one of the tenants of object oriented programming, but that's about all I know about it. I'm mostly self-taught in this area. I'd like suggestions on good, concise online resources for learning about the pillars of OOP and more detail about how to apply it in the situation the answerer is describing.