Four Core Principles of Object-Oriented Programming

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/26

flashcard set

Earn XP

Description and Tags

These flashcards cover the core vocabulary and concepts of Object-Oriented Programming as outlined in the lecture.

Last updated 2:16 PM on 1/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

27 Terms

1
New cards

Encapsulation

The principle of hiding the details about how a class works.

2
New cards

Inheritance

A concept where a child class acquires properties (variables and methods) from a parent class.

3
New cards

Abstraction

The principle of focusing on what a thing does, not how it does it.

4
New cards

Polymorphism

The ability to present the same interface for different underlying forms (data types).

5
New cards

Class

A blueprint or data type that you create.

6
New cards

Object

An instance (example) of a class, or a variable of the class data type.

7
New cards

New

The keyword used to create a new object.

8
New cards

Constructor

A method type used to create an object; called when you create a new object.

9
New cards

Setter

A method type used to change a variable, also called a mutator.

10
New cards

Getter

A method type used to see the value of a variable, also called an accessor.

11
New cards

Iterator

A method type that includes a loop, often used to view data.

12
New cards

Private Variables and Public Getters/Setters

The mechanism used to accomplish encapsulation.

13
New cards

Data Safety

The reason we use encapsulation to ensure users interact with the class only in particular ways.

14
New cards

Public Access Modifier

Means the variable or method can be used outside of the class.

15
New cards

Private Access Modifier

Means the variable or method can only be used inside of the class.

16
New cards

Protected Access Modifier

Means the variable or method is accessible within the class and by derived classes.

17
New cards

Class Variable

A variable that is shared among all objects and exists independently of any single object.

18
New cards

Static

The keyword used to create a class variable.

19
New cards

Extends

The keyword used to accomplish inheritance.

20
New cards

Code Reuse

The primary reason we use inheritance so we do not have to duplicate code.

21
New cards

Base Class

The parent class in an inheritance relationship.

22
New cards

Derived Class

The child class in an inheritance relationship.

23
New cards

Super

The keyword used to access methods and variables from the parent (base) class.

24
New cards

Abstract Class

A class that cannot be used to create an object but can have subclasses.

25
New cards

Interface

A type of abstract class that only contains empty methods.

26
New cards

Implements

The keyword used when a class wants to use an interface.

27
New cards

Package

A grouping (like a folder) of related classes and interfaces used to organize code.

Explore top flashcards