Unit_4_Part_1_Writing Classes

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 15

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

16 Terms

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
robot