Java Classes and Objects

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards based on the key concepts from Java Classes and Objects.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Object-Oriented Programming (OOP)

A style of programming where programmers create and utilize objects defined using user-customized data types.

2
New cards

Class

A programmer-defined data type composed of attributes and methods that define its state and behavior.

3
New cards

Object

A specific instance of a class created via the new operator, also known as instantiation.

4
New cards

Attributes

Properties or fields of a class that define its state, containing primitive data types or references to other objects.

5
New cards

Methods

Functions defined in a class to access, modify, or process its attributes.

6
New cards

Accessors (Getters)

Methods that return the value of an attribute.

7
New cards

Mutators (Setters)

Methods that set the value of a particular attribute without returning a value.

8
New cards

Constructor

A special method used to create instances of a class.

9
New cards

Encapsulation

A principle where internal components of a class are hidden from external classes, accessed only via getter/setter methods.

10
New cards

Instantiation

The process of creating a specific instance of a class.

11
New cards

Association relationship

A 'has-a' relationship implying that one object contains or references another.

12
New cards

Inheritance relationship

An 'is-a' relationship implying that one class derives from another.

13
New cards

Static variable

A class variable shared by all instances of the class.

14
New cards

Immutable object

An object that cannot change once it is constructed.

15
New cards

Final variable

A variable that cannot be changed once it has been initialized.

16
New cards

Garbage Collector

A part of Java that automatically frees up memory by destroying objects that are no longer referenced.

17
New cards

Object Relationships

Concepts defining how objects relate to one another, such as is-a or has-a relationships.