Name TBD (Quiz 2)

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

T/F: Inheritance involves a subclass, which is the general class, and a superclass, which is the specialized class.

False

T/F: Because every class directly or indirectly inherits from the Object class, every class inherits the Object class's members.

True

T/F: Instance methods do not have the key word static in their headers.

True

T/F: It is not possible for a superclass to call a subclass's method.

True

The ________ key word is used to call a superclass constructor explicitly.

super

When an object is passed as an argument to a method, what is passed into the method's parameter variable?

the object's memory address

Two or more methods in a class may have the same name as long as ________.

they have different parameter lists

________ refers to combining data and code into a single object.

Encapsulation

What does the following statement do? double[] array1 = new double[10];

It will allow valid subscripts in the range of 0 through 9, It declares array1 to be a reference to an array of double values, and It creates an instance of an array of ten double values

Which key word indicates that a class inherits from another class?

extends

Overloading means that multiple methods in the same class ________.

have the same name but different parameter lists

A subclass can directly access ________.

only public and protected members of the superclass

If two methods have the same name but different signatures they are ________.

overloaded


Set pelajaran terkait

PN ATI Learning System Pharmacology Final Quiz

View Set

S4 N243 PrepU - Ch. 62: Management of Patients with Burn Injury

View Set

Chp. 1- Demographic & Health Characteristics of Older Adults

View Set

Emergency Care: Seizures and Strokes

View Set

leadership and management Chapter 8 planned change

View Set

Reach for the Stars: Revenge of the Event

View Set

HESI Risk for Falls, Hip Fractures, and Pulmonary Embolism Case Study

View Set

Chapter 3 Study Guide: Ethics in Social Research

View Set