CSA 3.5-3.9 Vocabulary

0.0(0)
studied byStudied by 0 people
0.0(0)
call with kaiCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/27

flashcard set

Earn XP

Last updated 8:53 PM on 1/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

28 Terms

1
New cards

Instance Variables

define the attributes or data needed for objects

2
New cards

Methods

A block of code that performs a specific task. Defined inside a class and can access the instance variables of the class

3
New cards

Constructors

initializes the instance variables when the object is created

4
New cards

Object of the Class

Declare an object of your class in the main method or from outside the class.

5
New cards

Method Call

whenever you want to use the method, call objectName.methodName();

6
New cards

Method Definition

Write method header like following: public void methodName()

7
New cards

Return Statement

returns a variable’s value or an expression

8
New cards

Return Type

Type of value in the return statement that replaces the keyword void. Examples are String, int, double, and boolean.

9
New cards

Void Method

Does not return a value

10
New cards

Non Void Method

Returns a value

11
New cards

Return by Value

a return expression compatible with the return type is evaluated, and the value is returned

12
New cards

Accessor Method (Getter)

allows objects of other classes to obtain a copy of the value of instance variables or class variables. Is a non-void method.

13
New cards

Mutator (Modifier) Method/ Setter

a method that changes the values of the instance variables or class variables. It is often a void method.

14
New cards

Parameter

a variable in a method’s header that is used to pass in data that the method needs to do its job

15
New cards

Arguments

a value that is passed into a method when the method is called. It is saved into a parameter variable.

16
New cards

Anonymous Objects

When we create a new object without associating it with a variable

17
New cards

Call By Value

Used when it passes arguments to methods. This means that a copy of the value in the argument is saved in the parameter variable. It initializes the parameters with copies of the arguments. If the parameter variable changes its value inside the method, the original value outside the method is not changed.

18
New cards

Aliases

When two object references reference the same object

19
New cards

Mutable

their instance variables can change after they are constructed

20
New cards

Static or Class Methods

Methods that belong to the class and not to any object of the class

21
New cards

Static or Class Variables

Belong to the class, with all objects of a class sharing a single copy of the class variable and they use the keyword static

22
New cards

Final Keyword

Used in front of a variable declaration to make it a constant value that cannot be modified. Constants are traditionally capitalized.

23
New cards

Scope

Defined as where a variable is accessible or can be used. The scope is determined by where you declare the variable when you write your program.

24
New cards

Class Level Scope

instance variables inside a class

25
New cards

Method Level Scope

local variables (including parameter variables) inside a method

26
New cards

Block Level Scope

loop variables and other local variables defined inside of blocks of code with { }

27
New cards

Local Variables

Variables declared in the headers or bodies of blocks of code. Local variables can only be accessed in the block in which they are declared. Local variables that are declared inside a method are usually declared at the top of the method.

28
New cards

This Keyword

Acts as a special variable that holds a reference to the current object- the object whose method or constructor is being called. It can only be used in instance methods and constructors.