What is late bound function call and early bound function
call? Differentiate.
Answers were Sorted based on User's Feedback
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 |
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 |
WAP find square root of any number (without using sqrt() )?
Which is the parameter that is added to every non-static member function when it is called?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
How is exception handling carried out in c++?
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?
1. Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)
diff between Virtual mathod and abstract method?
what is virtual destructor
What is encapsulation example?
What Is a Polymorphism? How many types of polymorphism and whats that use in application?