Ovido
Idioma
  • Inglés
  • Español
  • Francés
  • Portuguesa
  • Alemán
  • Italiana
  • Holandés
  • Sueco
Texto
  • Mayúsculas

Usuario

  • Iniciar sesión
  • Crear cuenta
  • Actualizar a Premium
Ovido
  • Inicio
  • Iniciar sesión
  • Crear cuenta

Java 2 chapter 9 review study

Employing inheritance reduces errors because _________________.

many of the methods a subclass needs have already been used and tested

A base class can also be called a _________________.

superclass

Which of the following choices is the best example of a parent class/child class relationship?

BodyOfWater/River

A class named Building has a public, nonstatic method named getFloors(). If School is a child class of Building, and modelHigh is an object of type School, which of the following statements is valid?

modelHigh.getFloors();

When a subclass method has the same name and argument types as a superclass method, the subclass method _________________ the superclass method.

overrides

When you instantiate an object that is a member of a subclass, the _________________ constructor executes first.

parent class

If the only constructor in a superclass requires arguments, its subclass _________________.

must contain a constructor

A child class Motorcycle extends a parent class Vehicle. Each class constructor requires one String argument. The Motorcycle class constructor can call the Vehicle class constructor with the statement _________________.

super("Suzuki");

If you create a data field or method that is _________________, it can be used within its own class or in any classes extended from that class.

public or protected

You use a _________________ method access specifier when you create methods for which you want to prevent overriding in extended classes.

final

When a parent class contains a static method, child classes _________________ override it.

cannot

Abstract classes differ from other classes in that you _________________.

cannot instantiate objects from them

An abstract class Dwelling has two subclasses, SingleFamily and MultiFamily. None of the constructors for these classes requires any arguments. Which of the following statements is legal?

SingleFamily myHome = new SingleFamily();

An abstract class Employee has two subclasses, Permanent and Temporary. The Employee class contains an abstract method named setType(). Before you can instantiate Permanent and Temporary objects, which of the following statements must be true?

You must code statements for the setType() method within both the Permanent and Temporary classes

Which of the following statements is true?

Superclasses can contain abstract methods

When you create a _________________ in Java, you create a variable name in which you can hold the memory address of an object

reference

An application's ability to select the correct subclass method to execute is known as _________________ method binding.

dynamic

You _________________ override the toString() method in any class you create.

can

The Object class equals() method takes _________________.

one argument

The alternative to multiple inheritance in Java is known as a(n) _________________.

interface

Cuestionario
LED fakta
Suffixes Forming Adjectives
voc 4 (america's gun culture)
Ljustekniska storheter och enheter
16 LERNWORTSCHATS
Verb
Suffixes Forming Nouns
intro to transpo L1
Kapitel 2
Ljusfördelning och avbländning
Art and power : the power of music
its PL1
svt 2
Mossor
H1 zinnen
inflation
Duits schritt 41 (3vwo)
herman vocab 28
نکاتی که سختن
نکاتی که سختن
voc 2
biologia
USCP FINAL
HOPE 1
gastrulacion
social
vicios de lenguaje
psychology approaches
tora
glosor v.39
engels woordjes h1
wush
TRIP
sooo
KOTOBA PM LEMBAR 2
Purcomm
Frans E1 (3 vwo a)
Glosor v.39
Frans B1 (3 vwo a)
Frans A1(3 vwo a)
HISTORY OF TRAVEL & TOURISM EARLY TOURISM TWO FORMS: 1. Travel for Business.
strategic business analysis
Science Exam_
NGO SO periode 1
English Exam_
CLE Exam_
EARTH AND LIFE SCIENCE
PR2
math
CPHN 1