Computer Science, asked by Anonymous, 2 months ago

What is init method in python used for?

Answers

Answered by ayushanand42
0

Answer:

__init__ method

"__init__" is a reseved method in python classes. It is called as a constructor in object oriented terminology. This method is called when an object is created from a class and it allows the class to initialize the attributes of the class.

Answered by Anonymous
1

Answer:

"__init__" is a reseved method in python classes. It is called as a constructor in object oriented terminology. This method is called when an object is created from a class and it allows the class to initialize the attributes of the class.""

Similar questions