I am new to this forum. One basic question on OO! Today while going thru one topic on OO, I came across this question. I read about polymorphism, but didnot very close (5) answer. Pls let me know, if you have some:
Which one of the following situations can be addressed by designing objects with polymorphism in mind?
Ans. 1. The application needs to run on Linux and Windows without being recompiled.
2. The system needs to communicate with non-Java applications over Unix sockets.
3. The objects are part of a distributed system that uses the RMI functionality.
4. The application development is using an API that is currently in Early Access state, but final deployment will require the finished API.
5. In a three-tier application, the data layer has to support different underlying databases, such as Oracle, Sybase, Informix, and Postgres.