Skip main navigation
We use cookies to give you a better experience, if that’s ok you can close this message and carry on browsing. For more info read our cookies policy.
We use cookies to give you a better experience. Carry on browsing if you're happy with this, or read our cookies policy for more information.

Skip to 0 minutes and 4 secondsLast week, we worked on extending the Character class by creating a subclass called Enemy, which inherited its basic properties from Character. We added some new methods and attributes, and saw how the concept of polymorphism worked in situations where a subclass is a superclass. This week, we will discuss the difference between class variables and instance variables, and then you will complete the code for your game. Finally, we will show you some ways to share your code with other people, as well as how to quickly and easily create documentation for the classes you write. I hope you have enjoyed learning about object oriented programming, and please do leave us some feedback once you've completed the course.

Skip to 0 minutes and 45 secondsWe'd also love for you to participate in our global educator community, which can be most easily accessed by tweeting the hashtag Picademy.

Welcome to Week 4

Last week we worked on extending the Character class by creating a subclass, which inherited its basic properties. You added some new methods and attributes to the subclass, and learned how subclasses can be used in place of their superclasses because of polymorphism.

This week we will discuss the difference between class variables and instance variables, and then you will complete the code for your game.

Finally, we will show you some ways to share your code with other people, and how to quickly and easily create documentation for the classes you write.

Share this video:

This video is from the free online course:

Object-oriented Programming in Python: Create Your Own Adventure Game

Raspberry Pi Foundation

Contact FutureLearn for Support