C++ provides a facility in which the compiler should match function calls with the correct definition at the run time. This process is called as

Options
- Static binding
- Dynamic Binding


CORRECT ANSWER : Dynamic Binding

Discussion Board
C++ - Static and Dynamic Binding

Dynamic Binding: Dynamic Binding refers to linking a procedure call to the code that will be executed only at run time. C++ provides facility to specify that the compiler should match function calls with the correct definition at the run time. This is called dynamic binding or late binding or run-time binding. Dynamic binding is achieved using virtual functions.

Static Binding: By default, matching of function call with the correct function definition happens at compile time. This is called static binding or early binding or compile-time binding. Static binding is achieved using function overloading and operator overloading.

Prajakta Pandit 01-24-2017 01:14 AM

question

Static binding at compile time
Dynamic binding at run time
Is that right?

tottop 01-9-2017 03:38 AM

Incorrect. Should be static.

Incorrect. Should be static.

jaws 03-26-2016 09:27 AM

need explanation for the answer

why is this not static binding if it is binding correct definations and not correct object type at runtime?

guest 11-30-2014 12:29 PM

C++ test

The test is very good, for it is providing me a lot of practices.

MiaoLiJi 10-2-2014 10:04 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement