Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Basic Object-Oriented Python!
You have completed Basic Object-Oriented Python!
Preview
Add class attributes to your Car class to start building out the blueprint for car objects.
- Attributes = the name in Python for the properties of an object
- Class Attributes = attributes that are the same for every instance created and are created on the class
- id() Documentation
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
In Python these properties have
a particular name, attributes.
0:00
There are two kinds of attributes
we can add to our car class,
0:01
class attributes and instance attributes.
0:06
Let's start with class attributes.
0:09
Pop over into workspaces and
let's get coding.
0:12
It's finally time to remove the pass
keyword and start building out our class.
0:16
Class attributes will be the same for
every instance so
0:22
let's think of some
attributes all cars have.
0:26
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