Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
With vocabulary out of the way, let's see how to define our own classes.
We'll be doing a lot of importing in this course because it gives us the best way of organizing our code into logical bunches. It's a good practice to get into!
Notice that we can immediately read and write our class attributes! We don't usually write getters or setters (methods for retrieving or updating data on an instance) in Python.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Jonathan Davidson
1,641 Points1 Answer
-
Aizah Sadiq
2,435 Points1 Answer
-
Maija Mbenzi
2,536 Points1 Answer
-
Ingrid Matthews
1,465 Points1 Answer
-
tyler borg
9,429 PointsI am so lost with this video, I've watched it like 5 times but I'm still not understanding Methods.
Posted by tyler borgtyler borg
9,429 Points2 Answers
-
James Ball
2,074 Points1 Answer
-
aa114
1,697 Points2 Answers
-
Hanna Han
4,105 Points1 Answer
-
Matthias Binder
3,724 Points3 Answers
-
PLUS
ayub ali
Courses Plus Student 723 Points4 Answers
-
PLUS
ayub ali
Courses Plus Student 723 Points1 Answer
-
PLUS
ayub ali
Courses Plus Student 723 Points1 Answer
-
Anurag k
902 Pointsmy console is not working in the workspaces for oop can some one help me ...?
Posted by Anurag kAnurag k
902 Points3 Answers
-
David Ajuebor
212 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up