|
|
|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

04-02-2008, 09:39 PM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 11
|
|
|
what is polymorphism
hi
can anyone tell me little bit about polymorphism, early binding and late binding.
I have quiz tomorrow morning. 
|
|

04-03-2008, 06:15 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,039
|
|
It's a long story. Did you google it. There are lots of nice tutorials and articles available.
Java Guide - Polymorphism
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. (Close on September 4, 2008)
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-03-2008, 06:36 AM
|
|
Member
|
|
Join Date: Mar 2008
Location: Pune, India
Posts: 2
|
|
|
Yes its a long story indeed. Since you have a quiz here is brief description about Polymorphism.
There are two types, Static polymorphism ( also called compile time polymorphism) and Dynamic polymorphism (also called run-time polymorphism).
Method overloading is nothing but static polymorphism. Calls to overloaded methods are resolved by the compiler at compile time, hence called static binding.
Dynamic binding usually comes into picture when you have a sub class overriding a method of the super class. In such case if a base class reference is used to call the overridden method, the version of method to be invoked (i.e. the base class version or the child class version) is decided by the JVM, depending on the object the reference is pointing to. This is done at run time and hence called dynamc binding.
Please go through an example for better understanding.
|
|

04-03-2008, 06:39 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,039
|
|
|
Yep, there is a simple example included in the link I have provided.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. (Close on September 4, 2008)
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-03-2008, 10:01 PM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 11
|
|
thanks its was helpful.....i think i did well on this quiz.
but don't know about professor
i am glad i joined this community.
|
|

04-04-2008, 04:14 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,039
|
|
|
Wish you all the best with your quiz.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. (Close on September 4, 2008)
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
All times are GMT +3. The time now is 07:37 PM.
|
|
VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org