What do you mean by binding of data and functions?

Showing Answers 1 - 1 of 1 Answers

samiksc

  • Jan 25th, 2006
 

Binding of data and functions is related to when a function gets memory addresses and when a function knows which data it will operate on.

There are two types of bindings:

  1. static or compile time binding -- done in case of non-virtual functions. The function is always bound to the data type of the pointer or reference that is referring to the object.
  2. runtime or dynamic binding -- done in case of virtual functions. The function is bound at runtime to the data type of the object referred to by the pointer or the reference.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions