AP Computer Science A: Object-Oriented Programming Guided Notes

0.0(0)
studied byStudied by 0 people
0.0(0)
linked notesView linked note
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

32 Terms

1
New cards

Abstraction

Simplifying something and reducing its complexity by focusing on its main idea.

2
New cards

Procedural Abstraction

When programmers reuse methods/functions/procedures without knowing every single detail on how they work.

3
New cards

Data Abstraction

Simplifying how data is represented in a program.

4
New cards

Class Methods

Methods associated with classes, not instances.

5
New cards

Instance Methods

Created from a class's instance; requires creating an object, referencing its name with dot notation, and calling the method.

6
New cards

Scope

How accessible something is within a program.

7
New cards

Procedural Programming

Programming centered around procedures, breaking programs down into methods.

8
New cards

Object-Oriented Programming

Programs designed to model real-world or virtual things that can communicate and interact with each other. A class serves as a blueprint defining an object's attributes and behaviors.

9
New cards

Attributes

Like a noun; attributes define the "what" of something, holding the data for an object.

10
New cards

Behaviors

Like a verb; behaviors depict the "how" and describe the actions that an object carries out.

11
New cards

Relationship of Attributes to an Object

A "has a" relationship, indicating attributes reveal the properties of an object or its features.

12
New cards

Purpose of the Reserved Word "new"

Creates a new object of the respective class using its constructor.

13
New cards

Default Constructor

A constructor that does not have any parameters.

14
New cards

UML (Unified Modeling Language)

A standard for visually representing a program's design and documentation through diagrams.

15
New cards

Class Diagram

Depicts a class's key properties and its relationships with other classes.

16
New cards

Instance Variables

Another term for attributes; variables referenced by specific objects that hold data and belong to the object.

17
New cards

Object's State

The current value of an object's instance variables.

18
New cards

Overloading

Using the same name for different methods/constructors as long as their parameter lists are different.

19
New cards

Encapsulation

Keeping data private.

20
New cards

Accessor Method

A method that can access private instance variables but cannot change them; also known as a getter.

21
New cards

Mutator Method

A method capable of changing a private instance variable's value; also known as a setter or modifier.

22
New cards

Client Class

A class that uses other classes (e.g., PlanetTester is a client class for Planet).

23
New cards

Implementation Class

A class that defines objects (e.g., Planet is an implementation class).

24
New cards

Key to Object-Oriented Programming

The ability to construct multiple objects.

25
New cards

Method for Comparing Objects

equals() method.

26
New cards

Passing Reference Types as Arguments

Passing a reference type tells a method the address of an object; changes to the original object also affect the reference type.

27
New cards

Java Behavior with Primitive Data Types

Java makes a copy of a value to initialize the parameter; changes to the original value do not affect the parameter.

28
New cards

Scope of a Variable

The accessibility of a variable within a piece of code.

29
New cards

this Keyword

A special variable that references the current object; useful for distinguishing between two variables with the same name.

30
New cards

Static Methods

Can be executed without the prior existence of an object.

31
New cards

Non-Static Methods

Can only be called if an object exists.

32
New cards

Purpose of the Final Keyword

Ensures that a variable remains constant and cannot be changed.