|
| https://realpython.com/ |
| Start Here | https://realpython.com/start-here/ |
|
Learn Python
| https://realpython.com/courses/python-class-object/continue/ |
| Python Tutorials →In-depth articles and video courses | https://realpython.com/search?kind=article&kind=course&order=newest |
| Learning Paths →Guided study plans for accelerated learning | https://realpython.com/learning-paths/ |
| Quizzes & Exercises →Check your learning progress | https://realpython.com/quizzes/ |
| Browse Topics →Focus on a specific area or skill level | https://realpython.com/tutorials/all/ |
| Community Chat →Learn with other Pythonistas | https://realpython.com/community/ |
| Office Hours →Live Q&A calls with Python experts | https://realpython.com/office-hours/ |
| Podcast →Hear what’s new in the world of Python | https://realpython.com/podcasts/rpp/ |
| Books →Round out your knowledge and learn offline | https://realpython.com/products/books/ |
| Reference →Concise definitions for common Python terms | https://realpython.com/ref/ |
| Code Mentor →BetaPersonalized code assistance & learning tools | https://realpython.com/mentor/ |
| Unlock All Content → | https://realpython.com/account/join/ |
|
More
| https://realpython.com/courses/python-class-object/continue/ |
| Learner Stories | https://realpython.com/learner-stories/ |
| Python Newsletter | https://realpython.com/newsletter/ |
| Python Job Board | https://www.pythonjobshq.com |
| Meet the Team | https://realpython.com/team/ |
| Become a Tutorial Writer | https://realpython.com/write-for-us/ |
| Become a Video Instructor | https://realpython.com/become-an-instructor/ |
| Search | https://realpython.com/search |
| https://realpython.com/search |
| Join | https://realpython.com/account/join/ |
| Sign‑In | https://realpython.com/account/login/?next=%2Fvideos%2Fpython-class-object-overview%2F |
| https://realpython.com/courses/python-class-object/#team |
| Class Concepts: Object-Oriented Programming in Python | https://realpython.com/courses/python-class-object/ |
| Christopher Trudeau | https://realpython.com/courses/python-class-object/#team |
| Recommended Tutorial | https://realpython.com/python-classes/ |
| Course Slides (.pdf) | https://realpython.com/courses/python-class-object/downloads/python-class-object-slides/ |
| Sample Code (.zip) | https://realpython.com/courses/python-class-object/downloads/python-class-object-code/ |
| Ask a Question | https://realpython.com/courses/python-class-object/continue/#discussion |
| https://realpython.com/feedback/survey/course/python-class-object/liked/?from=lesson-title |
| https://realpython.com/feedback/survey/course/python-class-object/disliked/?from=lesson-title |
| Contents | https://realpython.com/courses/python-class-object/continue/#description |
| Transcript | https://realpython.com/courses/python-class-object/continue/#transcript |
| Discussion (3) | https://realpython.com/courses/python-class-object/continue/#discussion |
| Sample Code (.zip) | https://realpython.com/courses/python-class-object/downloads/python-class-object-code/ |
| Course Slides (.pdf) | https://realpython.com/courses/python-class-object/downloads/python-class-object-slides/ |
| 00:00 | https://realpython.com/courses/python-class-object/continue/#t=0.67 |
| Welcome to Class Concepts: Object-Oriented Coding in Python. | https://realpython.com/courses/python-class-object/continue/#t=0.67 |
| My name is Christopher, and I will be your guide. | https://realpython.com/courses/python-class-object/continue/#t=5.13 |
| 00:08 | https://realpython.com/courses/python-class-object/continue/#t=8.53 |
| That title is a bit of a mouthful because this is a three-part course. | https://realpython.com/courses/python-class-object/continue/#t=8.53 |
| Releasing all three parts takes time, | https://realpython.com/courses/python-class-object/continue/#t=13.17 |
| so depending on when you’re doing this course, | https://realpython.com/courses/python-class-object/continue/#t=15.6 |
| the other two parts may still be in progress. | https://realpython.com/courses/python-class-object/continue/#t=17.56 |
| 00:20 | https://realpython.com/courses/python-class-object/continue/#t=20.59 |
| Links in the notes below will be provided to the other two parts as they become | https://realpython.com/courses/python-class-object/continue/#t=20.59 |
| available. | https://realpython.com/courses/python-class-object/continue/#t=24.58 |
| The purpose of this course is to teach you about object-oriented coding in | https://realpython.com/courses/python-class-object/continue/#t=26.28 |
| Python. | https://realpython.com/courses/python-class-object/continue/#t=29.62 |
| 00:30 | https://realpython.com/courses/python-class-object/continue/#t=30.64 |
| The first part introduces you to the basic object-oriented coding structures, | https://realpython.com/courses/python-class-object/continue/#t=30.64 |
| like the class keyword, how you use it to write classes, | https://realpython.com/courses/python-class-object/continue/#t=34.62 |
| and how you associate attributes and methods (that’s OO speak for data and | https://realpython.com/courses/python-class-object/continue/#t=37.6 |
| operations) with the class. | https://realpython.com/courses/python-class-object/continue/#t=42.58 |
| 00:45 | https://realpython.com/courses/python-class-object/continue/#t=45.41 |
| Part two teaches you how to use inheritance, | https://realpython.com/courses/python-class-object/continue/#t=45.41 |
| a mechanism for structuring classes based on other classes. | https://realpython.com/courses/python-class-object/continue/#t=48.1 |
| This mechanism allows you to create hierarchies of classes to correspond to real- | https://realpython.com/courses/python-class-object/continue/#t=51.77 |
| world items, as well as providing a way of doing code reuse. | https://realpython.com/courses/python-class-object/continue/#t=55.78 |
| 01:00 | https://realpython.com/courses/python-class-object/continue/#t=60.94 |
| Parts one and two are the how, whereas part three is the why. | https://realpython.com/courses/python-class-object/continue/#t=60.94 |
| It concentrates on the design philosophy behind object-oriented coding and | https://realpython.com/courses/python-class-object/continue/#t=65.79 |
| introduces SOLID, an acronym that provides guidance on writing well-structured | https://realpython.com/courses/python-class-object/continue/#t=70.13 |
| object-oriented software. | https://realpython.com/courses/python-class-object/continue/#t=74.71 |
| 01:17 | https://realpython.com/courses/python-class-object/continue/#t=77.56 |
| This is part one, Class Concepts, | https://realpython.com/courses/python-class-object/continue/#t=77.56 |
| and in it you will learn why you might want to write object-oriented code, | https://realpython.com/courses/python-class-object/continue/#t=80.03 |
| how to write classes, what attributes and methods are, | https://realpython.com/courses/python-class-object/continue/#t=85.59 |
| and how to use the descriptor protocol. | https://realpython.com/courses/python-class-object/continue/#t=89.99 |
| 01:33 | https://realpython.com/courses/python-class-object/continue/#t=93.8 |
| The code in this course was written with Python 3.11. Object-oriented coding | https://realpython.com/courses/python-class-object/continue/#t=93.8 |
| in Python has gone through some changes over the years, | https://realpython.com/courses/python-class-object/continue/#t=98.58 |
| and so the code presented here won’t work in Python 2 without some changes. | https://realpython.com/courses/python-class-object/continue/#t=101.2 |
| 01:46 | https://realpython.com/courses/python-class-object/continue/#t=106.4 |
| For the most part, I’ve stuck with general Python 3, | https://realpython.com/courses/python-class-object/continue/#t=106.4 |
| but there is the odd line here or there that uses newer language features. | https://realpython.com/courses/python-class-object/continue/#t=109.44 |
| I’ll point those out when they occur. | https://realpython.com/courses/python-class-object/continue/#t=113.53 |
| 01:57 | https://realpython.com/courses/python-class-object/continue/#t=117.26 |
| Python is a mixed bag and includes high-level concepts from a variety of | https://realpython.com/courses/python-class-object/continue/#t=117.26 |
| different language styles. It has procedural coding | https://realpython.com/courses/python-class-object/continue/#t=122.0 |
| (that’s the straightforward scripting-type stuff), functional coding | https://realpython.com/courses/python-class-object/continue/#t=125.3 |
| (including patterns like lambdas, comprehensions, and map/reduce), | https://realpython.com/courses/python-class-object/continue/#t=129.28 |
| and what this course is about: | https://realpython.com/courses/python-class-object/continue/#t=133.62 |
| object-oriented coding. For all three of these, | https://realpython.com/courses/python-class-object/continue/#t=135.5 |
| Python takes a sort of loose approach. | https://realpython.com/courses/python-class-object/continue/#t=138.64 |
| 02:21 | https://realpython.com/courses/python-class-object/continue/#t=141.1 |
| You can take or leave these features as makes sense for the code you’re writing. | https://realpython.com/courses/python-class-object/continue/#t=141.1 |
| This is in contrast to languages like Java that are strictly object oriented, | https://realpython.com/courses/python-class-object/continue/#t=145.86 |
| where even "Hello, World" requires object-oriented concepts. | https://realpython.com/courses/python-class-object/continue/#t=149.92 |
| 02:35 | https://realpython.com/courses/python-class-object/continue/#t=155.14 |
| If you’ve never come across the term before, | https://realpython.com/courses/python-class-object/continue/#t=155.14 |
| object-oriented coding is an approach where you group data and operations on | https://realpython.com/courses/python-class-object/continue/#t=157.1 |
| that data together in a structure. In Python, | https://realpython.com/courses/python-class-object/continue/#t=161.68 |
| you use the class keyword to declare just such a structure. | https://realpython.com/courses/python-class-object/continue/#t=165.59 |
| 02:48 | https://realpython.com/courses/python-class-object/continue/#t=168.99 |
| The class is used to then create objects. | https://realpython.com/courses/python-class-object/continue/#t=168.99 |
| A piece of data on an object is called an attribute, | https://realpython.com/courses/python-class-object/continue/#t=172.61 |
| while the operations (like functions) are known as methods. | https://realpython.com/courses/python-class-object/continue/#t=175.46 |
| 03:00 | https://realpython.com/courses/python-class-object/continue/#t=180.35 |
| There are a variety of ways of declaring and using both attributes and methods, | https://realpython.com/courses/python-class-object/continue/#t=180.35 |
| each with different purposes. | https://realpython.com/courses/python-class-object/continue/#t=184.45 |
| This course will show you these differences and how to take advantage of them in | https://realpython.com/courses/python-class-object/continue/#t=186.41 |
| your code. | https://realpython.com/courses/python-class-object/continue/#t=190.02 |
| 03:11 | https://realpython.com/courses/python-class-object/continue/#t=191.64 |
| Your first foray into the object-oriented world covers why you might want to | https://realpython.com/courses/python-class-object/continue/#t=191.64 |
| foray into the object-oriented world. Foray is just a fun word to say. | https://realpython.com/courses/python-class-object/continue/#t=195.58 |
| Sept. 8, 2023 | https://realpython.com/courses/python-class-object/continue/#comment-0e817436-2cb7-48f9-be63-705360c0605e |
| Sept. 9, 2023 | https://realpython.com/courses/python-class-object/continue/#comment-79ad8517-d582-4a0c-94fe-611ff2eee1f8 |
| Nov. 18, 2023 | https://realpython.com/courses/python-class-object/continue/#comment-1e5e9c03-e4a0-4547-bf74-4b5b06e1a985 |
| realpython.com/courses/python-class-inheritance/ | https://realpython.com/courses/python-class-inheritance/ |
| realpython.com/courses/solid-principles-python/ | https://realpython.com/courses/solid-principles-python/ |
| Become a Member | https://realpython.com/account/join/ |
| Overview | https://realpython.com/courses/python-class-object/ |
| https://realpython.com/videos/why-oop-python/ |
|
Class Concepts: Object-Oriented Programming in Python (Overview) 03:22
| https://realpython.com/videos/python-class-object-overview/ |
|
The Case for Object-Oriented Programming 09:55
| https://realpython.com/videos/why-oop-python/ |
|
Class Creation 09:43
| https://realpython.com/lessons/python-class-creation/ |
|
Attributes 06:44
| https://realpython.com/lessons/python-attributes/ |
|
Properties and Descriptors 07:51
| https://realpython.com/lessons/python-properties-and-descriptors/ |
|
Class Methods 08:19
| https://realpython.com/lessons/python-methods/ |
|
A Complete Example: Putting It All Together 10:22
| https://realpython.com/lessons/python-class-object-review/ |
|
Class Concepts: Object-Oriented Programming in Python (Summary) 04:34
| https://realpython.com/lessons/python-class-object-summary/ |
| Privacy Policy | https://realpython.com/privacy-policy/ |
Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover