File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes example of polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "example of polymorphism" Watch "example of polymorphism" New topic

example of polymorphism

Ahmed Shaikh
Ranch Hand

Joined: Jul 25, 2005
Posts: 51
Hi All,
need a help.
Any one please show me how polymorphism implemented in java through example.
need an example for it.
Thanx in advance
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15081

If you would have searched "java polymorphism" with Google you would have found the answer in less than 10 seconds yourself...

For example:

Java Tip 30: Polymorphism and Java
The Essence of OOP Using Java, Polymorphism Based on Overloaded Methods
Java Polymorphism Tutorial

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
marc weber

Joined: Aug 31, 2004
Posts: 11343

Also see the JavaRanch campfire story, "How my dog learned polymorphism."

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Naveen Vooka

Joined: Oct 13, 2004
Posts: 25

Naveen Vooka
DevSquare - Online Application Development
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
The Java API is FULL of examples. You can even look at the source code yourself if you want, although it may be a bit more complex than what you currently need. However, the great thing about Object Oriented Programming is that you don't need to worry about the implementation details. You can look at the API docs (see the link in my sig) and get a pretty good idea how many concepts work.


Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: example of polymorphism
It's not a secret anymore!