What is late bound function call and early bound function
call? Differentiate.

Answers were Sorted based on User's Feedback



What is late bound function call and early bound function call? Differentiate...

Answer / svlsr2000

Functions are boud to there address so that they could be
executed. if the address of the functions are known durning
compile time the compiler binds it, this kind of binding is
known as compile time binding or early binding. Where as
when we dont know which function needs to be exucuted
during compile time (as in case of dynamic polymorphism),
compiler uses mechaninsm of virtual table and binds the
function address during runtime. this is known as runtime
binding or late binding.

Is This Answer Correct ?    24 Yes 1 No

What is late bound function call and early bound function call? Differentiate...

Answer / amrut kanthavadiya

if function or any variable known during the compile time
such Binding is known as Early Binding.

if during compile time does not specify which function is
bind. such binding known as Late Binding.

Example
--------
Object is best Example of late binding

we are bind object variable at Dynamically when we use the
object.

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More OOPS Interview Questions

What is use of overloading?

0 Answers  


What is difference between #define and const?

3 Answers   emc2,


What is Virtual Keyword?

9 Answers   IBM, NA,


What is multiple inheritance? Give Example

6 Answers   Mind Tree,


how many types of notations are in java

1 Answers   National University of Modern Languages (NUML),






what is cast operator?

2 Answers   Microsoft,


What is the diamond problem in inheritance?

0 Answers  


What is sub classing in c++?

1 Answers  


Write a program in c++ to read two floating point numbers and find their sum and average.

2 Answers  


What is function overloading?,describe it with the example.

5 Answers  


State what is encapsulation and friend function?

0 Answers   BirlaSoft,


What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined

7 Answers  


Categories