Exploring OOP

In this lesson, we will explore a program written using OOP. We will use our experience to first investigate and then modify the program. Finally, we will add a new subclass to the program and apply the principle of inheritance.

This quiz includes images that don't have any alt text - please contact your teacher who should be able to help you with an audio description.

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.When using inheritance in your object-oriented programs, you can create a new class that inherits from a class that already exists. What is the original class called?

1/4

Q2.When you create a new class with Inheritance - what is the class that is created called?

2/4

Q3.When you use inheritance what does the new class inherit?

3/4

Q4.Which of these class declarations is using inheritance?

4/4

This quiz includes images that don't have any alt text - please contact your teacher who should be able to help you with an audio description.

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.When using inheritance in your object-oriented programs, you can create a new class that inherits from a class that already exists. What is the original class called?

1/4

Q2.When you create a new class with Inheritance - what is the class that is created called?

2/4

Q3.When you use inheritance what does the new class inherit?

3/4

Q4.Which of these class declarations is using inheritance?

4/4

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.

This quiz includes images that don't have any alt text - please contact your teacher who should be able to help you with an audio description.

Quiz:

Exploring OOP

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

Q1.Which of the following are examples of classes used in the example program? (Tick 2 boxes)

Select two (2) boxes

1/5

Q2.Which of the following are examples of objects used in the example program? (Tick 2 boxes)

Select two (2) boxes

2/5

Q3.Which of the following is a method in the Book class?

3/5

Q4.Which of the following is an example of an attribute in the Library class?

4/5

Q5.To create a new object of the Book class which of the following lines of code would you use?

5/5

This quiz includes images that don't have any alt text - please contact your teacher who should be able to help you with an audio description.

Quiz:

Exploring OOP

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

Q1.Which of the following are examples of classes used in the example program? (Tick 2 boxes)

Select two (2) boxes

1/5

Q2.Which of the following are examples of objects used in the example program? (Tick 2 boxes)

Select two (2) boxes

2/5

Q3.Which of the following is a method in the Book class?

3/5

Q4.Which of the following is an example of an attribute in the Library class?

4/5

Q5.To create a new object of the Book class which of the following lines of code would you use?

5/5

Lesson summary: Exploring OOP

It looks like you have not completed one of the quizzes.

To share your results with your teacher please complete one of the quizzes.

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

This was the final lesson in the unit Object-oriented programming.

Browse Oak's lessons: