AP Computer Science A: Fundamentals of Object-Oriented Design

0.0(0)
Studied by 0 people
0%Unit 3 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/25

Last updated 8:34 PM on 3/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

Abstraction

The practice of reducing complexity by hiding unnecessary details in programming.

2
New cards

Procedural Abstraction

Breaking a large program into smaller, manageable methods where the user only knows inputs and expected results.

3
New cards

Data Abstraction

Hiding how data is stored and structured within a class, allowing interaction through specific methods.

4
New cards

Top-Down Design

A design approach that starts with a broad overview of the system and breaks it down into smaller sub-components.

5
New cards

Bottom-Up Design

A design approach that begins by writing specific, low-level modules and assembling them into a larger system.

6
New cards

Cohesion

How closely the responsibilities within a single class are related, aiming for high cohesion.

7
New cards

Coupling

The degree of dependency between different classes, aiming for low coupling.

8
New cards

High Cohesion

A design principle where a class represents a single concept with closely related responsibilities.

9
New cards

Low Coupling

A design principle where classes act independently of each other, minimizing dependencies.

10
New cards

Class

A blueprint from which individual objects (instances) are created, defining state and behavior.

11
New cards

Encapsulation

A key rule where instance variables in a class should be private to prevent direct access from outside.

12
New cards

Constructor

A special block of code used to initialize an object, which must match the class name and has no return type.

13
New cards

Overloading Constructors

Having multiple constructors with different parameter lists to initialize objects in various ways.

14
New cards

Accessor (Getter)

A method that returns the value of a private instance variable, allowing read-only access.

15
New cards

Mutator (Setter)

A method that updates the value of an instance variable, allowing logic (like validation) before changing data.

16
New cards

Public Instance Variables

A pitfall where instance variables are declared public, violating encapsulation.

17
New cards

Constructor Return Types

Mistake of adding a return type to a constructor, causing the object to not initialize correctly.

18
New cards

Variable Shadowing

A mistake of using a local variable with the same name as an instance variable, causing confusion.

19
New cards

Static vs. Instance Confusion

Mistake of making variables static when they should be unique to each object.

20
New cards

Spaghetti Code

A term for poorly designed code that is complex and tangled, making it hard to maintain.

21
New cards

Stepwise Refinement

The process used in top-down design where a complex problem is broken down into simpler parts.

22
New cards

Interfaces (in Design)

Defined interactions between classes that allow for clear communication in program design.

23
New cards

Object-Oriented Paradigm

A programming paradigm based on the concept of objects, which can contain data and methods.

24
New cards

Fuel Level in Spaceship Example

An instance variable representing the state of a spaceship regarding how much fuel it has.

25
New cards

Data Validation

Logic to ensure data meets certain criteria before being accepted or processed.

26
New cards

Method Invocation

The process of calling a method on an object to perform a specific action.

Explore top notes

note
Chemical bonds
Updated 974d ago
0.0(0)
note
History of England
Updated 1275d ago
0.0(0)
note
Indirect Values
Updated 1499d ago
0.0(0)
note
Chemistry of Life, Biology
Updated 1769d ago
0.0(0)
note
Photons
Updated 899d ago
0.0(0)
note
Biology - Evolution
Updated 1476d ago
0.0(0)
note
Chemical bonds
Updated 974d ago
0.0(0)
note
History of England
Updated 1275d ago
0.0(0)
note
Indirect Values
Updated 1499d ago
0.0(0)
note
Chemistry of Life, Biology
Updated 1769d ago
0.0(0)
note
Photons
Updated 899d ago
0.0(0)
note
Biology - Evolution
Updated 1476d ago
0.0(0)

Explore top flashcards

flashcards
faf
40
Updated 956d ago
0.0(0)
flashcards
faf
40
Updated 956d ago
0.0(0)