assignmentcafe.com – Write a java program that do the following:/answers

assignmentcafe.com –

Write a java program that do the following:

  1. Create a super class named employee which has three attributes name, age and salary and a method named printData that prints name, age and salary of an employee. 
  2. Provide two classes named programmer and database specialist (DatabasePro). 
  3. Each one of these classes extends the class employee. Both classes; programmer and the DatabasePro inherit the fields name, age and salary from employee. For the programmer, we add a language attribute and for the specialist (DatabasePro), we add a database tool attribute. 
  4. Each one of these classes has only the method printData(). This method prints the data of the employee (i.e., name, age and salary by invoking printData() in super class)  as well as printing the special data for programmer( i.e., language) and for DatabasePro( i.e.,databaseTool).