Exam 10: Object-Oriented Programming: Polymorphism

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

class cannot be instantiated.

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

C

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

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

A

Non-abstract classes are called:

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

D

Assigning a subclass reference to a superclass variable is safe:

(Multiple Choice)
4.7/5
(34)

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.8/5
(29)

All of the following methods are implicitly final except:

(Multiple Choice)
4.9/5
(41)

Which of the following is not possible?

(Multiple Choice)
4.7/5
(30)

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
(43)

Polymorphism enables you to:

(Multiple Choice)
4.7/5
(43)

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

(Multiple Choice)
4.7/5
(43)

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

(Multiple Choice)
4.9/5
(33)

Polymorphism allows for specifics to be dealt with during:

(Multiple Choice)
4.9/5
(34)

It is a UML convention to denote the name of an abstract class in:

(Multiple Choice)
4.8/5
(42)

Declaring a method final means:

(Multiple Choice)
4.9/5
(39)

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

(Multiple Choice)
4.8/5
(38)

Which of the following statements about abstract superclasses is true?

(Multiple Choice)
4.8/5
(31)

Interfaces can have methods.

(Multiple Choice)
4.8/5
(38)

Classes and methods are declared final for all but the following reasons:

(Multiple Choice)
4.8/5
(37)

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.9/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)
Showing 1 - 20 of 25
close modal

Filters

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