This course is currently in QA.
Object-Oriented Python (Refresh)
Coming April 2017…Watch trailer
About this Course
Sometimes simple scripts with functions in them just aren't enough. Eventually you'll need logical models of your work and that'll lead you to creating custom classes in Python.
Object-oriented programming is a large topic. It provides us some amazing tools, though, so it's one of the most beneficial things to learn about in Python.
First, you'll learn how to build basic custom classes. Then, you'll expand them through inheritance. And for some extra power, you'll also learn how to take control of Python's built-in classes to make your own more powerful while doing less work. Finally, we'll put everything together into a fun game utility.
What you'll learn
- Object-oriented programming
- Special methods
What are object/classes in Python and why use them? How do we create instances of classes?
Classes are great but what if you need a bunch of stuff in common? Python lets us make classes that inherit from each other.
No one wants to create every class from scratch. Let's see how to use Python's classes as the basis of our own.
Now that we have a good understanding of classes and object-oriented programming, let's use these skills to create a utility we can use when playing games.
Besides teaching Python at Treehouse, Kenneth Love is a husband & father. He created a few popular Python libraries, worked at most levels of the web stack, & was the Creative Director of a newspaper. He likes board games, whiskey, activism, & dry humor.