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

Discussion

A subtype discriminator is which of the following?

  • A.An attribute of the supertype whose values determine the subtype
  • B.An attribute of the subtype whose values determine the supertype
  • C.An attribute of the supertype whose values determine the supertype
  • D.An attribute of the subtype whose values determine the subtype

Answer: A

Correct answer: An attribute of the supertype whose values determine the subtype

The discriminator sits on the supertype because the question it answers - which kind of thing is this - must be answerable before the subtype is known. Its value directs each instance to its subtype: an employee type code of H, S or C sending the instance to hourly, salaried or consultant.

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

Post your comment

Please log in or register to post a comment.