Consider the following problem description and write java code: A company need to store its…

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper Order a Different Paper

Consider the following problem description and write java code: A company need to store its employees information. Each employee has an id, name, date of birth, phone number and salary. Using the diagram, write your java classes that shows the inheritance between these classes, and consider the following: • Class employee has a method work() which returns the statement “I am an employee” • Class employee overrides toString() method to return the employee information. Or if you don’t what to override toString() you can write your own method to return the employee info. (both ways are accepted) • Each subclass should overrides the method work() to return its work. You need to call work() of the superclass. For example: Method work() in executive class should returns: I am an employee.. I work as an executive.