A

Admin • 828.70K Points
Coach

Q. What is the purpose of `__init__` method in classes?

  • (A) Destructor
  • (B) Constructor
  • (C) Overrider
  • (D) Static method
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
`__init__` is the constructor method used to initialize a class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.