Python for JavaScript Developers Classes
About
In this module, we’ll focus on the essential concepts of object-oriented programming (OOP) in Python through classes. Classes are a fundamental part of Python that let you bundle data and functions together in a single entity. That single entity can then be used to make any number of objects that co This makes your code more organized, scalable, and easier to maintain.
We’ll cover how to create classes, make objects from them, 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. |
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 content | 1 hr 2 min | – |