Exam 6: A First Look at Classes

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

A constructor is a method that

Free
(Multiple Choice)
4.7/5
(33)
Correct Answer:
Verified

D

Which of the following is not involved in finding the classes when developing an object-oriented application?

Free
(Multiple Choice)
4.7/5
(36)
Correct Answer:
Verified

C

In a UML diagram to indicate the data type of a variable enter

Free
(Multiple Choice)
4.9/5
(27)
Correct Answer:
Verified

B

Quite often you have to use this statement to make a group of classes available to a program.

(Multiple Choice)
5.0/5
(40)

Another term for an object of a class is

(Multiple Choice)
4.9/5
(41)

The scope of a private instance field is

(Multiple Choice)
4.8/5
(44)

Class objects normally have __________ that perform useful operations on their data,but primitive variables do not.

(Multiple Choice)
4.8/5
(39)

Look at the following statement. import java.util.Scanner; This is an example of

(Multiple Choice)
4.9/5
(35)

An access specifier indicates how the class may be accessed.

(True/False)
4.8/5
(44)

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

(Multiple Choice)
4.8/5
(38)

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

(True/False)
4.8/5
(42)

In the cookie cutter metaphor,think of the ________ as a cookie cutter and ________ as the cookies.

(Multiple Choice)
4.7/5
(35)

Look at the following statement. import java.util.*; This is an example of

(Multiple Choice)
4.8/5
(36)

A UML diagram does not contain

(Multiple Choice)
4.7/5
(45)

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

(True/False)
4.8/5
(29)

One or more objects may be created from a(n)

(Multiple Choice)
4.8/5
(34)

This is a group of related classes.

(Multiple Choice)
4.9/5
(36)

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

(True/False)
4.9/5
(38)

Methods that operate on an object's fields are called

(Multiple Choice)
4.8/5
(36)

Instance methods should be declared static.

(True/False)
4.9/5
(40)
Showing 1 - 20 of 49
close modal

Filters

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