1.

Explain briefly dynamic binding and message passing.

Answer»

Binding refers to the linking of a procedure call to the code to be executed in response to the call.

1. Dynamic binding:
Dynamic binding (also known as late binding) means the code associated with a given procedure is not known until the time of the call at runtime.

2. Message passing:
An object-oriented program consists of a set of objects that communicate with each other the process of programming in an object-oriented language, and so it involves the following Basic steps

  • Creating classes that objects and their behaviour.
  • Creating objects from class definitions, and
  • Establishing communication among objects.


Discussion

No Comment Found