Unit 6 Quiz Answers - Unit 6 Quiz Answers 1 Why must the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Unit 6 Quiz Answers 1 Why must the AbstractGrid class be declared abstract? Choose one answer. a. It does not need to be declared as abstract b. It is never instantiated c. It has no constructor declared d. It implements the Grid interface but does not implement all the methods it specifies e. Any class with"Abstract" as part of its name must be declared abstract 2 The code for the AbstractGrid method getValidAdjacentLocations includes a call to the method isValid , but there is no declaration or implementation of isValid in the AbstractGrid class. Why is this possible? Choose one answer. a. Because isValid is used in another AbstractGrid method, it is automatically an abstract method b. isValid is invoked from the Location class c. isValid in this context always returns true because its parameter is always a Location d. isValid is declared and implemented in all the classes that extend AbstractGrid e. isValid is declared in the Grid interface that AbstractGrid implements 3 What is the average case time-complexity for the method getEmptyAdjacentLocations()
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/30/2010 for the course BIOLOGY BIOLOGy taught by Professor Hued during the Spring '10 term at Eastern Oregon.

Page1 / 3

Unit 6 Quiz Answers - Unit 6 Quiz Answers 1 Why must the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online