Exam 10: Object-Oriented Programming: Polymorphism

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

Which of the following statements about abstract superclasses is true?

Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
Verified

A

The UML distinguishes an interface from other classes by placing the word "interface" in above the interface name.

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

C

Which of the following statements is false?

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

D

In Java SE 7 and earlier,an interface may contain:

(Multiple Choice)
4.8/5
(35)

When a superclass variable refers to a subclass object and a method is called on that object,the proper implementation is determined at execution time.What is the process of determining the correct method to call?

(Multiple Choice)
4.9/5
(31)

Consider classes A,B and C,where A is an abstract superclass,B is a concrete class that inherits from A and C is a concrete class that inherits from B.Class A declares abstract method originalMethod,implemented in class B.Which of the following statements is true of class C?

(Multiple Choice)
4.8/5
(26)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(33)

Which statement best describes the relationship between superclass and subclass types?

(Multiple Choice)
4.7/5
(37)

A class that implements an interface but does not declare all of the interface's methods must be declared ________.

(Multiple Choice)
4.8/5
(29)

A(n) class cannot be instantiated.

(Multiple Choice)
4.7/5
(36)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(27)

Which of the following is false?

(Multiple Choice)
4.8/5
(35)

Assigning a subclass reference to a superclass variable is safe ________.

(Multiple Choice)
5.0/5
(36)

Polymorphism allows for specifics to be dealt with during:

(Multiple Choice)
4.8/5
(32)

If the superclass contains only abstract method declarations,the superclass is used for ________.

(Multiple Choice)
4.9/5
(24)

Which of the following is not possible?

(Multiple Choice)
4.8/5
(47)

Interfaces can have methods.

(Multiple Choice)
4.7/5
(36)

For which of the following would polymorphism not provide a clean solution?

(Multiple Choice)
4.7/5
(31)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(31)

All of the following methods are implicitly final except:

(Multiple Choice)
4.9/5
(39)
Showing 1 - 20 of 28
close modal

Filters

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