Employee Class
Easy · Online assessment (OA) · New graduate
One of the HackerRank coding questions was a standard Java class and object problem. I had to write an Employee class with an integer employee ID and a string employee name. The employee ID had to auto-increment and be assigned automatically whenever a new employee object was created. It was more about understanding static fields and constructors than doing a LeetCode-style algorithm.
