Exam 11: Classes Continued

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

Methods in a subclass can be related to methods in a superclass in all of the following ways EXCEPT ____.

(Multiple Choice)
4.8/5
(37)

The value of a class constant is assigned ____.

(Multiple Choice)
4.8/5
(40)

In the TurtleGraphics package, the pen is initially all of the following EXCEPT ____.

(Multiple Choice)
4.8/5
(39)

FIGURE 11-1 FIGURE 11-1   -Alec suggests that Amara create documentation for her program by embedding comments using the ____ symbol. -Alec suggests that Amara create documentation for her program by embedding comments using the ____ symbol.

(Multiple Choice)
4.8/5
(34)

The relationship that allows an object of one class to send a message to an object of another class is called ____.

(Multiple Choice)
4.8/5
(40)

A(n) ____________________ class is one that will be instantiated.

(Short Answer)
4.9/5
(34)

When related classes have the same ____, they can be used interchangeably in a program.

(Multiple Choice)
4.7/5
(38)

The methods in an interface are usually private. ____________________

(True/False)
4.8/5
(39)

A class can implement methods in addition to those listed in the interface.

(True/False)
4.8/5
(44)

If more than one class implements an interface, its methods are ____.

(Multiple Choice)
4.8/5
(35)

A(n) ____________________ method cannot be overridden by a subclass.

(Short Answer)
4.8/5
(38)

Interfaces can be organized in an inheritance hierarchy.

(True/False)
4.7/5
(49)

A class's ____ provides the information needed to use the class without revealing anything about its implementation..

(Multiple Choice)
4.8/5
(34)

A method's ____________________ describe what should be true before it is called.

(Short Answer)
4.8/5
(42)

FIGURE 11-1 FIGURE 11-1   -In Figure 11-1 above, we say that AAA ____ Object. -In Figure 11-1 above, we say that AAA ____ Object.

(Multiple Choice)
4.8/5
(39)

Identify the letter of the choice that best matches the phrase or definition. a.Dependency b.Extension c.Overriding d.Aggregation e.Inheritance -When objects are related by sending and receiving a message.

(Essay)
4.8/5
(29)

If a class implements an interface, all its subclasses do so implicitly.

(True/False)
4.8/5
(34)

Class methods can reference only instance variables, never static variables.

(True/False)
4.9/5
(41)

Identify the letter of the choice that best matches the phrase or definition. a.Dependency b.Extension c.Overriding d.Aggregation e.Inheritance -When the subclass method does not exist in the superclass.

(Essay)
4.8/5
(37)

A(n) ____ method is accessible to a class's descendents, but not to any other classes in the hierarchy.

(Multiple Choice)
4.8/5
(51)
Showing 21 - 40 of 46
close modal

Filters

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