Aug-02-2020, 09:32 AM
When you call the class name like a function, Python runs the
__init__()
method. When you call Employee()
, you create an instance of the Employee class. This instance is initialized by calling automatically the __init__()
method.