a) Given the following inheritance hierarchy, implement each of the classes.
Given the following inheritance hierarchy, implement each of the classes. The person class has parametrized constructors and getters and setters. The employee id is auto-generated from the last allotted value…