Question: 1. Methods in a class describe actions or behaviors. properties. state. characteristics . 2 Which of the following in not a part of a method

1. Methods in a class describe

actions or behaviors.
properties.
state. characteristics

.

2 Which of the following in not a part of a method declaration?

access specifier
return type
paramaters class name

3. A variable or method parameter only lives inside the ________ in which it is created.

( )
[ ]
" " {}

4. A constructor method is always called when an object of the class is created. true false

5.In most cases, variables in a class are marked ________ so that a user of this class cannot access the values directly.

6.The "this" keyword always refers to the current object. true false

7. Match the terms on the left with their definitions on the right.

Objects

[ Choose ] The "blueprint" for an object Represents properties of an object. Custom variables which contain state and behavior. Actions associated with an object.

State

[ Choose ] The "blueprint" for an object Represents properties of an object. Custom variables which contain state and behavior. Actions associated with an object.

Behavior

[ Choose ] The "blueprint" for an object Represents properties of an object. Custom variables which contain state and behavior. Actions associated with an object.

Class [ Choose ] The "blueprint" for an object Represents properties of an object. Custom variables which contain state and behavior. Actions associated with an object.

8.For any given class, I can only ever have a single constructor. true false

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!