Q. What is the purpose of a constructor?
Solution:
A constructor, __init__, initializes object attributes when created.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
A constructor, __init__, initializes object attributes when created.
Strengthen Your Practice with our comprehensive question bank.