module 6 terms - ap computer science a

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

1/23

flashcard set

Earn XP

Description and Tags

Last updated 3:22 PM on 1/10/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards
**Access Level**
Determines the level of access other files have to the class’s data or methods.
2
New cards
**Attributes**
Stores an Object’s data.
3
New cards
**Class**
A blueprint for what an Object  stores and how it behaves.
4
New cards
**Class Attribute**
The Attribute is created once and it is shared between all instances of the class. Class attributes can be accessed through the class name like Math.PI
5
New cards
**Class Method**
Can only access class attributes. Class methods can be accessed through the class name like Math.pow()
6
New cards
**Constructors**
Special methods used for constructing an Object.
7
New cards
**Default Constructor**
A constructor that receives 0 parameters. When a class has 0 constructors a hidden default constructor is create that will set all objects to null, booleans to false and all other primitives to 0.
8
New cards
**Encapsulation**
The combining of data (attributes) into a class.
9
New cards
**equals**
A method used to check equality of two Objects.
10
New cards
**final**
Used to make a variable constant.
11
New cards
**Accessor/Getter**
A method that allows public access to a private attribute.
12
New cards
**Information Hiding**
When classes store their data privately to prevent unwanted modifications.
13
New cards
**Instance Attribute**
Every instance of an Object gets its own copy of the variable.
14
New cards
**Instance Methods**
Can access both instance and class variables. Can only be accessed through an instance of class.
15
New cards
**Modifiers**
Sets method or attribute properties.
16
New cards
**null**
A keyword used to denote that a variable is not referencing any Object.
17
New cards
**package**
A group of related classes.
18
New cards
**private**
Data cannot be accessed outside the file.
19
New cards
**protected**
Data can be modified by classes that share the same package or any subclass.
20
New cards
**public**
Data can be fully accessed outside the file.
21
New cards
**Mutator/Setter**
A method that allow private attributes to be changed publicly
22
New cards
**static**
Sets an attribute or method to be a class attribute or class method.
23
New cards
**this**
A keyword used to access the current instance of the class.
24
New cards
**toString**
A method used to return a text version of an Object.