Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago