Lesson 8 - Week 8: Constructing Python – Classes and Methods Flashcards

(6 cards)

1
Q

class

A

A template for creating objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

super()

A

A method that allows a user to access the parent class without explicitly referring to it by name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

property

A

An aspect of object-oriented programming that is used to manage the attributes of objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

__init__

A

A special method which is called when a user initializes an object from one of the class templates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

inheritance

A

A feature that allows attributes and methods to be passed from one class to another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

__str__

A

A special instance method that is called whenever the object is rendered as a string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly