Question

What is the purpose of the __init__() method in a class?

A To define a class attribute
B To define an instance attribute
C To initialize an object when it is created
D To define a class method
E To define an instance method
Practice Next

Hey! Ask a query