Exam 10: Inheritance and Polymorphism

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

If class Dog has a subclass Retriever, which of the following is true?

(Multiple Choice)
4.8/5
(41)

Which operator is used to determine if an object is of a particular class type?

(Multiple Choice)
4.8/5
(44)

A subclass cannot directly access public members of a superclass.

(True/False)
4.7/5
(41)

Based on the diagram in the accompanying figure, the method area in the class Box ____ the method area in the class Rectangle.

(Multiple Choice)
4.8/5
(40)

Inheritance is an example of what type of relationship?

(Multiple Choice)
4.8/5
(38)

The classes Reader and Writer are derived from the class ____.

(Multiple Choice)
4.9/5
(41)

Java uses late binding for methods that are private but not for methods that are marked final.

(True/False)
4.8/5
(38)

If a class implements an interface, it must ____.

(Multiple Choice)
4.9/5
(38)

Composition is also called ____.

(Multiple Choice)
4.9/5
(38)

Any new class you create from an existing class is called a(n) ____.

(Multiple Choice)
4.8/5
(40)
Showing 41 - 50 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)