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. |
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....
|
|||||||
|
|||
|
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. |
| Sponsored Links |
|
|||
|
Quote:
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.. |
|
|||
|
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
|
| The Following User Says Thank You to sehrishmalik For This Useful Post: | ||
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |