Machine-translated by Google. Questions are authored in English.
Top

Discussion

Resolving an overloaded call requires the symbol table to hold

  • A.no entries at all
  • B.all the candidate declarations reachable at that point
  • C.only the most recently declared of the candidates
  • D.a single entry with the parameter types omitted

Answer: B

Every visible candidate must be available so the best match can be chosen. Discarding all but one at declaration time would make correct resolution impossible. Some languages also permit the return type to participate in the choice.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.