Section 1

Preview this deck

constructor methods

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

4 years ago

Date created

Mar 1, 2020

Cards (19)

Section 1

(19 cards)

constructor methods

Front

do not have a return type and are the same name as the class

Back

length method

Front

characters.length();

Back

float

Front

Back

object

Front

instance of a class,

Back

attribute

Front

variables (nouns/adjectives) ex. balance, owner

Back

this.owner

Front

calls the method

Back

I f else statement

Front

{ if (n % 2 = = 0) { return true; } else { return false; } }

Back

int

Front

Back

Pseudo code black box

Front

1. Describe method should do 2. determine inputs 2. types of parameters 4. write psuedocode for desired results 5. IMpelement the modethod body 6. test method

Back

return

Front

specify the result of a method ex. public static double cubeVolume(double sideLength) { return sideLength sideLength sideLength; }

Back

methods

Front

procedures/functions (verbs), deposit, withdrawal

Back

Method

Front

instructions that are called

Back

Name a way to avoid multiple return statements

Front

You can avoid multiple returns by storing the method result in a variable that you return in the last statement of the method.

Back

return statement

Front

specifies the result of a method

Back

stating private in an object meaning. not visible outside the class.

Front

other classes cannot access, must use methods to access or change. serves a ** purpose with larger programs when deemed private.

Back

arguments

Front

values supplied to the method

Back

class

Front

blueprint

Back

double

Front

Back

Parameters

Front

variables are created for receiving method calls

Back