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
We need a way to make use of the code that lives in our classes' superclasses. I bet there's a way to do this!
The super()
function lets us call a bit of code from the parent class inside our own class. This is really helpful when you need to override a method from the superclass, defining your own version, but keep the effects of the parent class's version of the code.
For more about super()
than you probably want to know at this point, check out this blog post from the excellent Raymond Hettinger.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
E. T.
Python Development Techdegree Student 884 Points1 Answer
-
jayda hendrickson
3,413 Points2 Answers
-
PLUS
Benyamin Kohanchi
Courses Plus Student 2,342 Points2 Answers
-
Johnny Austen
Front End Web Development Techdegree Graduate 35,494 Points1 Answer
-
Joshua Lewis
2,107 Points3 Answers
-
Ross Nation
4,678 Points2 Answers
-
Kohei Ashida
4,882 Points2 Answers
-
Ingrid Matthews
1,465 Points1 Answer
-
Pramoda Achalla
1,745 Points12 Answers
-
Dan B
6,155 Points1 Answer
-
PLUS
MIAN OSAMA ARSHAD
Courses Plus Student 279 Points2 Answers
-
michael akamihe
7,812 Points1 Answer
-
Kaio Nigro
4,168 Points1 Answer
-
Antonia Bruno
4,283 PointsPython inheritance, why is it throwing a SyntaxError when I run the program? [Solved]
Posted by Antonia BrunoAntonia Bruno
4,283 Points1 Answer
-
nkennedynoble
9,268 Points2 Answers
-
Hai Phan
2,442 Points1 Answer
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