Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Indicate when each of the following bindings takes place in C++ (language design

ID: 3675971 • Letter: I

Question

Indicate when each of the following bindings takes place in C++ (language design time, language implementation time, compile time, link time, load time, or run time). If more than one time is possible, choose the latest possible time.

(a) Binding of the int type to a specific number of bytes (i.e., the decision to use a specific number of bytes to store an int value)

(b) Binding of a class variable to a specific memory address

(c) Binding of an instance variable to a specific memory address

(d) Binding of a variable to a specific type

(e) Binding of an operator to a specific number of operands

(f) Binding of a variable that has been declared final to a specific value

Explanation / Answer

(a) Binding of the int type to a specific number of bytes (i.e., the decision to use a specific number of bytes to store an int value)

Its being done at the compile time.

(b) Binding of a class variable to a specific memory address

Its being done at linking time.

(c) Binding of an instance variable to a specific memory address

Its being done at run time

(d) Binding of a variable to a specific type

Its being done at the compile time.

(e) Binding of an operator to a specific number of operands

Its being done at linking time.

(f) Binding of a variable that has been declared final to a specific value

Its being done at run time