Annie wants to assign employee ID's to all the employee objects that are being created. She wants the ID's to automatically increment and be assigned to the instance when it is created.
Help Annie implement the functionality for Employee ID's using class attributes. Assign the ID's to an instance attribute called id
, that can be accessed by calling employee.id
. The employee ID should start from 1.