The line of code __init__(self)
is known as a constructor.
Therefore, the correct response is:
constructor.
A line of code such as __init__(self) is known as a(n):
(1 point)
Responses
object.
object.
class.
class.
constructor.
constructor.
dunder.
dunder.
Skip to navigation
1 answer
The line of code __init__(self)
is known as a constructor.
Therefore, the correct response is:
constructor.