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