| Author |
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
Bartender
Joined: Aug 16, 2005
Posts: 12956
|
|
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 7 API documentation
Scala Notes - My blog about Scala
|
 |
marc weber
Sheriff
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
sscce.org
|
 |
Naveen Vooka
Greenhorn
Joined: Oct 13, 2004
Posts: 25
|
|
http://www.artima.com/javaseminars/modules/PolymorphInt/ http://www.java2s.com/ExampleCode/Language-Basics/PolymorphisminJava.htm -------------- Naveen Vooka www.devsquare.com 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. Layne
|
Java API Documentation
The Java Tutorial
|
 |
 |
|
|
subject: example of polymorphism
|
|
|