C++ Programming and Technical

Consider the assignment statement a=b; (with
the variable declarations in the previous question).
Which answer is true?
a) The assignment statement is illegal.
b) The assignment statement activates the A
assignment operator.
c) The assignment statement activates the B
assignment operator.
d) The assignment statement activates both A and
B assignment operators

Read Solution (Total 0)

C++ Other Question

Which statement is true of "pure virtual" functions?
a) They force you to derive another class from the
base class which contains the function.
b) They contain no code.
c) Neither of these
d) Both of these
When should you use a const reference parameter?
a) Whenever the data type might be many bytes.
b) Whenever the data type might be many bytes,
the function changes the parameter within its
body, and you do NOT want these changes to
alter the actual argument.
c) Whenever the data type might be many bytes,
the function changes the parameter within its
body, and you DO want these changes to alter
the actual argument.
d) Whenever the data type might be many bytes,
and the function does not change the parameter
within its body