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

Discussion

What ambiguity does multiple inheritance with defaults create?

  • A.The number of inherited properties becomes impossible to count
  • B.Two parents may supply contradictory default values
  • C.The subclass relation may become circular in the hierarchy
  • D.The category may be assigned to the wrong parent entirely

Answer: B

The classic example makes Nixon a Quaker and a Republican, one supplying a default of pacifist and the other of non-pacifist, with nothing in the representation to adjudicate. Skeptical readings refuse to conclude either, credulous ones pick a consistent extension. Circularity, misplacement and counting are different issues. A representation that admits two equally good conclusions must decide whether to choose or to abstain, and the choice is a design decision rather than a technical one.

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

Post your comment

Please log in or register to post a comment.