AP CSA Unit 2 Vocabulary

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/35

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

36 Terms

1
New cards

DRY Principle

a software development principle that stands for "Don't Repeat Yourself" which aims to reduce repetition in code

2
New cards

access modifier

a keyword used to set the visibility of classes, variables, constructors, and methods

3
New cards

encapsulation

an object-oriented programming concept where the instance variables of a class are hidden from other classes and can be accessed only through the methods of the class

4
New cards

instance variable

a variable defined in a class that represents an attribute of an object

5
New cards

refactor

to improve the readability, reusability, or structure of program code without altering its functionality

6
New cards

constructor signature

the first line of the constructor which includes the public keyword, the constructor name, and any parameters

7
New cards

default value

a predefined value that is used by a program when the user does not provide a value

8
New cards

no-argument constructor

a constructor with no parameters

9
New cards

actual parameter

the value to assign to the formal parameter

10
New cards

call by value

copying the value of the actual parameter to the constructor's formal parameter

11
New cards

formal parameter

the value to be passed to a constructor or method

12
New cards

local variable

a variable declared and accessible within a specific block of code

13
New cards

overloading

defining two or more constructors or methods with the same name but different signatures

14
New cards

parameterized constructor

a constructor that has a specific number of arguments to be passed to assign values to an object's instance variables

15
New cards

state

the attributes of an object that are represented by its instance variables

16
New cards

scope

where a variable can be used

17
New cards

assignment

using the assignment operator to initialize or change the value stored in a variable

18
New cards

initialization

giving a starting value to a variable using the assignment operator

19
New cards

literal

a source code representation of a value, such as a number or text

20
New cards

primitive type

a basic data type that Java predefines

21
New cards

reference type

a data type that contains a pointer to the memory location of an object

22
New cards

accessor method

gives the value that is currently assigned to an instance variable

23
New cards

application program interface (API)

a library of prewritten classes

24
New cards

library

a collection of methods or reusable components of code

25
New cards

return by value

a copy of the value is given to where the method is called

26
New cards

compound assignment operator

shortcut syntax to perform an operation on both operands and assign the result into the variable on the left

27
New cards

compound expression

a combination of expressions

28
New cards

concatenation

when two strings are joined together

29
New cards

expression

a combination of data and operators that evaluates to a single value

30
New cards

operand

the data that is operated on

31
New cards

truncate

to cut off data from the end

32
New cards

Boolean expression

a logical statement that gives either a true or false value

33
New cards

mutator method

changes the value assigned to an instance variable

34
New cards

relational operator

an operator used to compare values or expressions

35
New cards

escape sequence

starts with a \ to indicate how to display a string

36
New cards

override

to define a method in a subclass with the same method signature as a method inherited from a superclass