Preview lessons, content and tests

Computer Science & Programming solved. All in one platform.

1. To trial the platform and take tests, please take a few seconds to SIGN UP and SET UP FREE.

2. Searching for something specific? See our text overview of all tests. Scroll right for levels, and lists.

3. Student and Teacher User Guides |  Schemes of Work |   Real Teacher use Videos |


Join 36000+ teachers and students using TTIO.

Classes and Objects

A class definition is a blueprint that defines the properties of all objects of the same type. Each object is one of a group of similar objects, and you define the group as a class. The class definition will describe every object of that type. A classic example that has been used to describe a class is a 'cookie cutter'. A Class is like an object constructor, or a "blueprint" for creating objects.

Suggested Video

View or use the PowerPoint for the video above

Mini Project - Challenge

The following presentation challenges you to create a library system in which different classes interact with each other. You get to create different classes and users can use the menu to view books in the library, take out books as well as return them. See solution video which provides a step by step tutorial on how to create this.

SOLUTION VIDEO >> CLICK HERE

Additional Reading

https://www.w3schools.com/python/python_classes.asp

https://techwithtim.net/tutorials/python-programming/classes-objects-in-python/creating-classes/

https://www.programiz.com/python-programming/class

www.teachyourselfpython.com