# Creating a class

In this lesson, we will use our experience with object-oriented programming to step into the shoes of a video game programmer. We will create a class that will hold the information about monsters in a puzzle game.

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Intro quiz - Recap from previous lesson

Before we start this lesson, let’s see what you can remember from this topic. Here’s a quick quiz!

Q1.The associated actions of an object

1/5

Q2.Every new object created from the same blueprint

2/5

Q3.A collection of data and its associated actions

3/5

Q4.The individual properties of an object

4/5

Q5.The blueprint for an object

5/5

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Intro quiz - Recap from previous lesson

Before we start this lesson, let’s see what you can remember from this topic. Here’s a quick quiz!

Q1.The associated actions of an object

1/5

Q2.Every new object created from the same blueprint

2/5

Q3.A collection of data and its associated actions

3/5

Q4.The individual properties of an object

4/5

Q5.The blueprint for an object

5/5

# Video

Click on the play button to start the video. If your teacher asks you to pause the video and look at the worksheet you should:

• Click "Close Video"
• Click "Next" to view the activity

Your video will re-appear on the next page, and will stay paused in the right place.

# Worksheet

These slides will take you through some tasks for the lesson. If you need to re-play the video, click the ‘Resume Video’ icon. If you are asked to add answers to the slides, first download or print out the worksheet. Once you have finished all the tasks, click ‘Next’ below.

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Creating a Class

Don’t worry if you get a question wrong! Forgetting is an important step in learning. We will recap next lesson.

Q1.In this piece of code, zombie is a...

1/4

Q2.When you create a new object from a class you need to use a...

2/4

Q3.To access the name of the Monster in this code which line in correct?

3/4

Q4.An object is a structure that contains...

4/4

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Creating a Class

Don’t worry if you get a question wrong! Forgetting is an important step in learning. We will recap next lesson.

Q1.In this piece of code, zombie is a...

1/4

Q2.When you create a new object from a class you need to use a...

2/4

Q3.To access the name of the Monster in this code which line in correct?

3/4

Q4.An object is a structure that contains...

4/4

# Lesson summary: Creating a class

## Time to move!

Did you know that exercise helps your concentration and ability to learn?

For 5 mins...

Move around:
Walk

On the spot:
Dance