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 |
What is the real life example of polymorphism?
Write an operator overloading program to write S3+=S2.
why destructor is not over loaded?
What is abstrac class?where is it use?
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
what is an instance of a class
what is costructor?
Can we call a base class method without creating instance?
Petrol pump mgt. system: To design a program that display an interface for the sale of the Petrol and then make the entries at the backend in the database.
What do you mean by overloading?
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
write a program for function overloading?
14 Answers HCL, InfoCity, TATA,