This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Why run time polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Why run time polymorphism" Watch "Why run time polymorphism" New topic
Author

Why run time polymorphism

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Can anyone plz give a real example where runtime polmorphism will be useful?


Groovy
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Well, if you mosey on over to The Campfire you'll find a few nice stories such as How my Dog learned Polymorphism - which, while isn't real life (really), does help to form a firm understanding of just what polymorphism is and can do.
Good Luck.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Take a look at the JDBC specification. The entire idea behind it takes advantage of runtime polymorphism!


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
I think the question should be post in binginner's forum.
SCJP Questions & Answers by Roseanne Zhang
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why run time polymorphism