Lesson 8 - Week 8: Constructing Python – Classes and Methods Flashcards
(6 cards)
1
Q
class
A
A template for creating objects.
2
Q
super()
A
A method that allows a user to access the parent class without explicitly referring to it by name.
3
Q
property
A
An aspect of object-oriented programming that is used to manage the attributes of objects.
4
Q
__init__
A
A special method which is called when a user initializes an object from one of the class templates.
4
Q
inheritance
A
A feature that allows attributes and methods to be passed from one class to another.
5
Q
__str__
A
A special instance method that is called whenever the object is rendered as a string.