In this Python Tutorial for Beginners video I am going to show How to use init method and self self keyword in python. So what does the init method do in python ? init method is used as a constructor for the class. Usually init does some initialization work e.g. initialize attributes and other functions.The arguments passed to the class name are given to its init() method. It would be incorrect to call init constructor of the class.But init is the closest thing we’re going to get in Python to a constructor.

#python #python oop

Python OOP Tutorials | Python __init__, Constructors and Self
2.60 GEEK