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

Discussion

An extent is which of the following?

  • A.A keyword that indicates that the subclass inherits from a superclass
  • B.A keyword that indicates that the superclass inherits from a subclass
  • C.The set of all instances of a class within a database
  • D.Only one instance of a class within a database

Answer: C

Correct answer: The set of all instances of a class within a database

The extent is the collection the database maintains of every object of a class, and it is what queries range over - the object-oriented counterpart of a table holding the rows of one type. A class need not have an extent, but without one there is nothing for a query to select from and no key may be declared.

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

Post your comment

Please log in or register to post a comment.