Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk 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), respond to polls, upload content and access many other special features. 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 contact us.

Polymorphism

This is a discussion on Polymorphism within the OOPS forums, part of the Software Development category; Hi, i am new in oops programming. Can you explain me the difference early binding & late binding . Thanks in advance....

Go Back   Geeks Talk > Software Development > OOPS
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

OOPS Object-Oriented Programming Concepts

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-01-2009
Junior Member
 
Join Date: Apr 2009
Location: India
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
stylish16 is on a distinguished road
Polymorphism

Hi,

i am new in oops programming.

Can you explain me the difference early binding & late binding .

Thanks in advance.

Last edited by stylish16; 04-01-2009 at 01:50 PM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-08-2009
Junior Member
 
Join Date: Apr 2009
Location: bhopal
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
amit pandey812 is on a distinguished road
Thumbs down Re: Polymorphism

Quote:
Originally Posted by stylish16 View Post
Hi,

i am new in oops programming.

Can you explain me the difference early binding & late binding .

Thanks in advance.
hi :

1(a) early binding called as static binding 1(a) late binding is called as dynamic binding.

2(b)events occurs in compile time 2(b).events occurs at run time.
3(c)functions call are fast.3(c) function calls are slow compare as...
4(d) complete address information are necessary at compile time.4(d) complete address information are necessary at run time..
Reply With Quote
The Following 2 Users Say Thank You to amit pandey812 For This Useful Post:
  #3 (permalink)  
Old 04-09-2009
Junior Member
 
Join Date: Apr 2009
Location: pakistan
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
sehrishmalik is on a distinguished road
Re: Polymorphism

Value in early binding is passed while writting programes so is unknown to user.while in late binding values are passed by end user on run time
Reply With Quote
The Following User Says Thank You to sehrishmalik For This Useful Post:
  #4 (permalink)  
Old 05-28-2009
Junior Member
 
Join Date: May 2009
Location: D/961,sector-6,CDA,Cuttack,Orissa
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
swayamjit is on a distinguished road
Re: Polymorphism

early binding is a binding in which variables are intialized at the compile time


but in late binding variable are initialized at the run time.
Reply With Quote
  #5 (permalink)  
Old 05-29-2009
Junior Member
 
Join Date: May 2009
Location: pune
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
chandrasekhar4java is on a distinguished road
Re: Polymorphism


I would like to add an example to the above answers.
1.Method overloading is an example for static polymorphism means writing a method with same name with different parameters.By this we can extend the available feature of a method

2.Method overriding is an example for dynamic polymorphism means writing the method with the same name and parameters in a subclass.This is nothing but the code replacement.
Reply With Quote
  #6 (permalink)  
Old 06-06-2009
Junior Member
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mr_parmarsunil is on a distinguished road
Re: Polymorphism

early binding and late binding are two important and widely talked issues in OOPs and both vary a lot.
Early binding is also known as static binding which mean when the resouce requirement are known at complile time. for eg. if you declare a variable int rollno then complier will reserve memory at complie time.
on the other hand
late binding:- is also known as dynmic binding which mean when the resouce requirement are not known at complile time.in other words we can say that when resources are bind at run time for eg. if we declare any variable with the use of new operator. then memory requirements are known at run time
Reply With Quote
  #7 (permalink)  
Old 09-02-2009
Junior Member
 
Join Date: Sep 2009
Location: jaipur
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nirwankaran is on a distinguished road
Re: Polymorphism

any one tell me with simple examples what is polymorphism. and what is the diffrece btwn plymorphism and abstraction.
Reply With Quote
Reply

  Geeks Talk > Software Development > OOPS

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Polymorphism Martina VB.NET 6 01-01-2009 03:01 AM
Polymorphism kalayama OOPS 10 10-02-2008 01:49 AM
Dynamic Polymorphism in C mkannanmca86 C and C++ 1 05-26-2008 04:30 AM
Polymorphism......... Sampath_Java Java 4 09-12-2007 01:50 AM


All times are GMT -4. The time now is 05:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved