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

Discussion

A supertype/subtype hierarchy has which of the following features?

  • A.Subtypes at the lower lever in the hierarchy inherit attributes only from their immediate supertype.
  • B.Attributes are assigned at the highest logical level.
  • C.Subtypes at the higher lever in the hierarchy inherit attributes only from their immediate subtype.
  • D.Attributes are assigned at the lowest logical level.

Answer: B

Correct answer: Attributes are assigned at the highest logical level.

An attribute shared by every subtype belongs at the supertype, where it is held once and inherited by all. Pushing it down to the subtypes duplicates it and invites inconsistency. The rule is a matter of placing each attribute as high as it is true, and no higher.

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

Post your comment

Please log in or register to post a comment.