AP Computer Science A · Lesson 3.1 · Unit 3 · CED topic 3.1

Abstraction and program design

Name:   Date:  

1 Why this lesson matters

Read the opening paragraph and the "Required content" box on the lesson page. In your own words, explain each objective below.

1.A. Represent the design of a program by using natural language or creating diagrams that indicate the classes in the program and the data and procedural abstractions found in each class by including all attributes and behaviors.

2 What abstraction is

Read this section. In your own words, summarize the main idea.

Method decomposition
Generalizing with parameters

3 Designing a class before writing it

Read this section. In your own words, summarize the main idea.

4 Worked example

Read the "Worked example" box. Then, without looking back, try writing your own answer below.

A school tracks students. Each student has a name, a grade level from 9 to 12, and a count of credits earned. A student can report the name, earn more credits, and say whether the student has enough credits (at least 20) to be a senior.

5 Exam focus: avoid this mistake

Read the "Exam focus" box, then restate it in your own words.

6 Sum it up

In two or three sentences, explain this lesson's main idea to someone who has not read it.