Home
Explore
Exams
Search for anything
Login
Get started
Home
Unit_4_Part_1_Writing Classes
Unit_4_Part_1_Writing Classes
0.0
(0)
Rate it
Studied by 0 people
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Card Sorting
1/15
There's no tags or description
Looks like no tags are added yet.
Study Analytics
All
Learn
Practice Test
Matching
Spaced Repetition
Name
Mastery
Learn
Test
Matching
Spaced
No study sessions yet.
16 Terms
View all (16)
Star these 16
1
New cards
Class
A blueprint for creating objects, providing initial state (data) and behavior (methods) for those objects.
2
New cards
Object
An instance of a class that has state and behavior defined by its class.
3
New cards
Encapsulation
The practice of restricting access to certain details of an object, exposing only what is necessary for an external interface.
4
New cards
Instance Data
Variables declared at the class level, unique to each object instance.
5
New cards
Constructor
A special method used for initializing new objects of a class, having the same name as the class.
6
New cards
Accessor Method
A method that returns the value of an instance variable.
7
New cards
Mutator Method
A method that changes the value of an instance variable.
8
New cards
Visibility Modifiers
Keywords in Java that control the accessibility of classes, methods, and variables (e.g., public, private, protected).
9
New cards
UML Class Diagram
A graphical representation of a class, its attributes, operations, and relationships with other classes.
10
New cards
ToString Method
A method that returns a string representation of an object, useful for debugging and logging.
11
New cards
Black Box
An encapsulated object that hides its internal workings, exposing only methods for interaction.
12
New cards
Local Data
Variables declared within a method, accessible only within that method.
13
New cards
Public Method
A method that can be called from outside the class, typically exposing the object's services.
14
New cards
Private Variable
A variable that can only be accessed within its own class, enforcing encapsulation.
15
New cards
MAX (in context of Die class)
A constant representing the maximum face value of a die, typically set to 6.
16
New cards
Support Method
A method that assists a service method but is not intended to be called by clients.