CIS 111 C.6 True/False

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

T

Shadowing is the term used to describe where the field name is hidden by the name of a local or parameter variable.

T

A constructor is a method that is automatically called when an object is created.

F (the method can change the value of a field)

A method that gets a value from a class's field but does not change it is known as a mutator method.

T

Instance methods do not have the key word static in their headers.

F (should never be declared static)

Instance methods should be declared static.

T

The java.lang package is automatically imported into all Java programs.

T

The term "no-arg constructor" is applied to any constructor that does not accept arguments.

F (does not hide the local variable)

When a local variable in an instance method has the same name as an instance field, the instance field hides the local variable.

T

a class is not an object, but a description of an object

T

a method that stores a value in a class's field or in some other way changes the value of a field is known as a mutator method.

T

an access specifier indicates how the class may be accessed

T

an object can store data

F (attribute may be accessed outside the class)

The public access specifier for a field indicates that the attribute may not be accessed by statements outside the class.

F (default constructor is not written by the author, it is never generated)

The term "default constructor" is applied to the first constructor written by the author of a class.


Set pelajaran terkait

Physical Activity Benefits-Practice

View Set

Prep U Vascular Disorders and Problems of Peripheral Circulation

View Set

HISTORY QUESTIONS AND ANSWERS(unit 3)

View Set