Python for JavaScript Developers Classes

About

This module focuses on the essential concepts of object-oriented programming (OOP) in Python through classes. Classes are a fundamental part of Python. At their simplest, they enable you to bundle data and functions together into a single entity. Classes make your code more organized, scalable, and easier to maintain.

We’ll cover how to create classes, create objects from those classes, and use inheritance and encapsulation to structure your code effectively. By the end of this lesson, you’ll know how to build your own classes and use them to represent real-world situations in a more practical way.

Content

Lesson Video Time Video Skills
Setup 2 min link Setting up the development environment.
Concepts 4 min link Describe classes in Python.
Writing a Python Class 5 min link Create a class in Python.
Instantiating Objects 4 min link Instantiate objects from a class in Python.
Overriding Methods 5 min link Override methods in a class in Python.
Create a Vehicle Class 8 min link Create a Vehicle class in Python.
Class vs. Instance Members 9 min link Compare and contrast class and instance members in Python.
Inheritance 7 min link Practice class inheritance in Python.
Total content 44 min  

Level Up content

Lesson Video Time Video Skills
Create a BankAccount Class 11 min link Create an additional class in Python.
Create a SavingsAccount Subclass 7 min link Create a subclass in Python.
Total Level Up content 18 min  

References

📖 Reference Materials