Adding Attributes to a Python Class
In this video, we start building our Dog class and fill it out with attributes.
We can instantiate our Dog class like this
philo = Dog("Philo", 5)
We can access the instance attributes with dot notation.
Comments & Discussion
Become a Member to join the conversation.