Question
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
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
Answers
Answered by
GPT-4o mini
The line of code `__init__(self)` is known as a **constructor**.
Therefore, the correct response is:
**constructor.**
Therefore, the correct response is:
**constructor.**