Object-Oriented Python

Treehouse
Course Summary
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.
-
+
Course Description
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
- Inheritance
- Special methods
About the Teacher
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.
-
+
Course Syllabus
Instant Objects
What are object/classes in Python and why use them? How do we create instances of classes? 12 steps- What Are Objects And Classes? 2:45
- OOP Vocabulary Quiz 1 5 questions
- Let's Make a Class! 4:21
- Your first class 2 objectives
- Methods 5:48
- Your first method 1 objective
- Method Interactivity 1 objective
- Method Arguments 5:33
- __init__ 2 objectives
- Design 3:40
- OOP Basics 5 questions
- Master Class 3 objectives
Inheritance
Classes are great but what if you need a bunch of stuff in common? Python lets us make classes that inherit from each other. 8 stepsAdvanced Objects
No one wants to create every class from scratch. Let's see how to use Python's classes as the basis of our own. 14 stepsDice Roller
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. 11 steps