Object-Oriented Programming Vocabulary

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

1/25

flashcard set

Earn XP

Description and Tags

Flashcards from lecture notes on Object-Oriented Programming in Java.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

Class

A structure that defines the data and the methods to work on that data and serves as a blueprint for an object.

2
New cards

Object

An executable copy of a class, with its own properties and methods.

3
New cards

Public Access Modifier

Allows the class to be accessed by any other class.

4
New cards

Private Access Modifier

Doesn't allow the class to be accessed by any other class.

5
New cards

Default Access Modifier

Used when no access modifier is specified, also called package-private.

6
New cards

Private Property and Method Access Modifier

Only accessible within the class they are declared in

7
New cards

Protected Property and Method Access Modifier

Accessible by subclasses within any package.

8
New cards

Public Property and Method Access Modifier

Accessible from everywhere in the program.

9
New cards

Default Property and Method Access Modifier

Accessible only within the same package (package-private)

10
New cards

Encapsulation

Objects are the most important units in an OOP system and must maintain their integrity.

11
New cards

Constructors

Special methods that are only called during instantiation to assign values upon creation.

12
New cards

Association

Describes a “using” relationship Objects in this relationship maintain their own life cycle, the destruction of one does not cause the destruction of another

13
New cards

Association – Directed

A one-way association where Only instances of one class use instances of the other class Classes whose instances share a directed association relationship with another object would often have a method that accepts instances of the other class as its parameter

14
New cards

Association – Bidirectional

A two-way association where Instances of both classes can perform the associative action to each other

15
New cards

Association – Reflexive

Exists between separate instances of the same class OR to the same instance of a class itself.

16
New cards

Aggregation

A special, more specific kind of Association Describing a part-whole relationship Where the objects still have their own life cycles

17
New cards

Composition

A special, more specific kind of Aggregation Where, like aggregation, the classes in this relationship exhibit a part-whole relationship (specifically “part-of”) However, one class is dependent on the existence of the other class

18
New cards

Unified Modeling Language

Is used to represent a system / entities Aids in object-oriented design process as a tool for visual representation

19
New cards

Multiplicity

Defines the count of objects that are expected to participate in a relationships

20
New cards

Array

Is fixed in terms of size

21
New cards

ArrayList

Is a dynamic array (no need to specify the size) that extends the List interface

22
New cards

Programming Paradigm

A fundamental style of programming answering the question… “How do I think about and solve a problem?”

23
New cards

Java

Is an object-oriented language , both a compiled and interpreted language

24
New cards

Static Keyword

Associates the assigned entity to the class, not an instance Static variable or method can be used by directly referencing the class

25
New cards

Final Keyword

Variables must have a value Methods cannot be overridden Classes cannot be extended

26
New cards

Overloading

Having multiple methods or constructors with the same name but with different signatures