Another Unit 2 (Idk What's Going On)

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

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:00 AM on 9/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

37 Terms

1
New cards

arguments

values that take the place of its corresponding parameter

2
New cards

parameters

the placeholders for values that will be fulfilled by the arguments

3
New cards

constructors

purpose is to initialize the fields

4
New cards

shadowing

when two variables of different scopes have the same name and are in memory at the same time, can be fixed with this. or different field names (like my)

5
New cards

overloading

2 or more methods with the same class and same name but different parameters

6
New cards

toString

purpose is to report the state of the object, is automatically invoked when you try to print the object reference and will print the memory location if not overridden

7
New cards

this () vs. this.

this. is used to access an instance field or method (but not the constructors; normally used to avoid shadowing; this() is used to access a different constructor, it must be the first line of the constructor

8
New cards

concatenation

the joining of two or more strings, can also join numbers to strings in a commutative manner

9
New cards

black box theory

private values that can only be accessed through methods that can access and retrieve the information from inside the class

10
New cards

method

series of instructions that implement a behavior of an object (what the object does)

11
New cards

class

blueprint of an object

12
New cards

object

the instance of a class

13
New cards

mutator

used to change the values that an object contains

14
New cards

accessor

allows the client of teh class to extract data from an objecte

15
New cards

errors

mistakes made in coding that prevent the code from running or returning values that are logically incorrect

16
New cards

questions about the scope of variables

1) where is it declared

2) who has access

3) when does it leave memory

17
New cards

instance fields

where the object stores it values

18
New cards

instatiation

the process of creating an object

19
New cards

variable

location in memory where value is stored

20
New cards

assignment operator

stores the value of the right to the left, generally using the “=” symbol

21
New cards

object attribute

what an object has; stored in the fields

22
New cards

object method

what an object does

23
New cards

object state

determined by the values of the fields

24
New cards

abstraction

understanding what something does, not how it does it

25
New cards

encapsulation

data and methods belong to an individual object-each object has their own methods and attribute (the grouping together of methods into one class)

26
New cards

parameter

the data the method needs to do its job

27
New cards

“new” keyword

1) creates the object

2) calls upon the constructor

28
New cards

default constructor

no parameters assigns default values to instance fields

29
New cards

parameterized constructor

has parameters that assigns values to instance fields

30
New cards

“camel” notation

is the practice of writing compound words or phrases such that each word or abbreviation begind to a capital letter

31
New cards

“humpback” notation

the first letter starts with a lowercase letter when naming

32
New cards

object reference

object variable, whats used to store an object

33
New cards

“null” keyword

releases the reference from the object

34
New cards

this. vs this()

this. is used to access an instance field or method in order to generally resolve errors due to shadowing

this() is used to access a different constructor; it must be the first line of the constructor

35
New cards

local scope characteristics

1) declared within method

2) can be in method signature (as a parameter) or the body

3) can only be accessed within the method

4) is out of scope when the method ends

36
New cards

class scope characteristics

1) declared in the class (not in a method)

2) variables are called instance fields

3) is out of scope when the object leaves memory/object reference goes to 0

37
New cards

block scope characteristics

1) declared in a block statement

2) variables are known as block variables

3) only the block has access to it

4) is out of scope when the block statement ends