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 dont 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.
Our writing company offers a unique service that provides guidance in different types of assignments. Please rest assured that the service is absolutely legal and doesn’t violate any regulations. It can be used for generating new ideas and thoughts for your own project, additional insight into the subject, or encouragement for further researches.