Object-oriented programming, or OOP, is a way to organise code by grouping similar features and operations into distinct entities.
Objects may be thought of conceptually as analogous to the parts of a system. Programs may be compared to assembly lines in factories. A system component performs some material processing at each stage of the assembly line, converting raw materials into the final product.
An object has both data and behaviour, such as the information on the raw or preprocessed materials used at each stage of an assembly line’s production process. Learn from this video tutorial on how to:
-
Create a
class
, which is like a blueprint for creating an object -
Use classes to create new
objects
-
Instantiate classes with
attributes
and
methods
The Python Basics: A Practical Introduction to Python 3 book is accompanied by this video course. There are further Python Fundamentals lessons available as well.
Keep in mind that IDLE is the primary tool for working with Python in this course. You may wish to start with Python Basics: Setting Up Python if you’re completely new to the language.