AP Computer Science A · Lesson 1.11 · Unit 1 · CED topics 1.12 and 1.13

Objects, classes, and constructors

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.

12.A. Explain the relationship between a class and an object.

12.B. Develop code to declare variables to store reference types.

13.A. Identify, using its signature, the correct constructor being called.

2 Classes and objects

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

3 Variables that refer to objects

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

4 Creating an object with a constructor

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

5 Worked example

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

Which of these calls compile, and which constructor does each use?

6 Exam focus: avoid this mistake

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

7 Sum it up

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