AP CSA - Object-Oriented Programming

studied byStudied by 2 people
5.0(1)
Get a hint
Hint

object-oriented programming

1 / 39

flashcard set

Earn XP

Description and Tags

For Mrs. Wright's Block 5 AP CSA Class :)

40 Terms

1

object-oriented programming

an approach to creating and using models of physical or imagined objects

New cards
2

class

a programmer-defined list of attributes and instructions (“blueprint”) from which objects are used

New cards
3

object

an instance of a class

New cards
4

attribute

a characteristic of an object; also known as a field or property

New cards
5

behavior

an action that an object can perform; also known as a method

New cards
6

instantiate

to call the constructor to create an object

New cards
7

constructor

a block of code that has the same name as the class and tells the computer how to create a new object

New cards
8

reference variable

a variable that points to an object

New cards
9

state

the attributes represented by the object’s instance variables

New cards
10

uml diagram

a standard way to visualize the design of a system or software

New cards
11

parameter

a variable in the method that defines the type of value to receive when the method is called

New cards
12

dot operator

a dot that is used to call a method in a class

New cards
13

argument

a value passed to a method when the method is called

New cards
14

string literal

a sequence of characters enclosed in quotation marks (“ ")

New cards
15

superclass

a class that can be extended to create subclasses

New cards
16

subclass

a class that extends a superclass and inherits its attributes and behaviors

New cards
17

inheritance

a programming principle where a subclass inherits the attributes and behaviors of a superclass

New cards
18

tester class

the class that contains the main method and from where the program starts running

New cards
19

return type

specifies the value returned before a method completes its execution and exits

New cards
20

method signature

consists of a name and parameter list

New cards
21

return

to exit a method and going back to the point in the program that called it with the requested value or information

New cards
22

void

specifies that a method should not have a return value

New cards
23

programming style

a set of guidelines and best practices for formatting program code

New cards
24

documentation

written descriptions of the purpose and functionality of code

New cards
25

commit

an operation which saves the latest changes of the code and represents a snapshot of a project

New cards
26

code review

the process of examining code and providing feedback to improve the quality and functionality of the program

New cards
27

sequencing

putting steps in order

New cards
28

selection

deciding which steps to do next

New cards
29

iteration statement

a control structure that repeatedly executes a block of code

New cards
30

selection statement

a statement that only executes when a condition is true

New cards
31

variable

a container that stores a value in memory; can hold only one value at a time

New cards
32

data type

the format of the data that can be assigned to a variable

New cards
33

declaration

giving a name and a data type to a variable

New cards
34

concatenation

joining two strings together (Hint: it’s also Mrs. Guy’s favorite coding-related word!)

New cards
35

decomposition

breaking a problem down into smaller parts

New cards
36

redundant code

code that is unnecessary

New cards
37

efficient

getting the best outcome with the least amount of waste

New cards
38

pseudocode

a plain language description of the steps in an algorithm

New cards
39

two-way selection statement

specifies a block of code to execute when the condition is true and a block of code to execute when the condition is false

New cards
40

logical operator

an operator that returns a Boolean value

New cards

Explore top notes

note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 29 people
... ago
5.0(1)
note Note
studied byStudied by 17 people
... ago
5.0(1)
note Note
studied byStudied by 22 people
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 6501 people
... ago
4.9(26)
note Note
studied byStudied by 10 people
... ago
4.0(1)
note Note
studied byStudied by 111 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (70)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (49)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 10 people
... ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 4 people
... ago
4.0(1)
flashcards Flashcard (47)
studied byStudied by 17 people
... ago
5.0(1)
flashcards Flashcard (44)
studied byStudied by 52 people
... ago
4.5(2)
flashcards Flashcard (46)
studied byStudied by 16 people
... ago
5.0(1)
robot