What is _init_?

    0
    6

    _init_ is a method of constructor in Python. This method is automatically called to allocate memory when a new object of a class is created. All classes have the _Init_ method

    For eg

    Class EMP:
        Def_Init_(Self, Name);
              Self.name=name
        E1= EMP["ram"]
        Print (E1.name)