Exam 10: Object-Oriented Programming: Polymorphism and Interfaces

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

Declaring a method final means:

(Multiple Choice)
4.9/5
(33)

Polymorphism enables you to:

(Multiple Choice)
4.8/5
(34)

Which of the following could be used to declare abstract method method1 in abstract class Class1 (method1 returns an int and takes no arguments)?

(Multiple Choice)
4.8/5
(29)

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

(Multiple Choice)
4.8/5
(32)

Consider the abstract superclass below: public abstract class Foo { Private int a; Public int b; Public Foo(int aVal, int bVal) { A = aVal; B = bVal; } Public abstract int calculate(); } Any concrete subclass that extends class Foo:

(Multiple Choice)
4.9/5
(41)

Which of the following statements is false?

(Multiple Choice)
5.0/5
(37)

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

(Multiple Choice)
4.9/5
(37)

Every object in Java knows its own class and can access this information through method .

(Multiple Choice)
4.8/5
(27)

Which of the following does not complete the sentence correctly? An interface _______________.

(Multiple Choice)
4.8/5
(25)

Polymorphism allows for specifics to be dealt with during:

(Multiple Choice)
4.8/5
(22)

All of the following methods are implicitly final except:

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
4.9/5
(38)

Interfaces can have _______methods.

(Multiple Choice)
4.8/5
(34)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(41)
Showing 21 - 34 of 34
close modal

Filters

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