Page 1 of 1

Question ThreeQuestion Three3 Marks Write a java program that do the following:1. Create a super class named empl

Posted: Fri May 20, 2022 11:10 am
by answerhappygod
Question ThreeQuestion Three3 Marks Write a java program that do the following:1. Create a super class named employee which has three attributes name, ageand salary and a method named printData that prints name, age and salary ofan employee.2. Provide two classes named programmer and database specialist(DatabasePro).a. Each one of these classes extends the class employee. Both classes;programmer and the DatabasePro inherit the fields name, age and salarythe specialist (DatabasePro), we add a database tool attribute.b. 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 forprogrammer( i.e., language) and for DatabasePro( i.e.,databaseTool).3. Provide a class Main that creates programmer and database specialist theninitialize and print their respective information.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded. from employee. For the programmer, we add a language attribute and for Pg. 09Question ThreeTypical runs of the program
Question ThreeQuestion Three3 Marks Write a java program that do the following:1. Create a super class named employee which has three attributes name, ageand salary and a method named printData that prints name, age and salary ofan employee.2. Provide two classes named programmer and database specialist(DatabasePro).a. Each one of these classes extends the class employee. Both classes;programmer and the DatabasePro inherit the fields name, age and salarythe specialist (DatabasePro), we add a database tool attribute.b. 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 forprogrammer( i.e., language) and for DatabasePro( i.e.,databaseTool).3. Provide a class Main that creates programmer and database specialist theninitialize and print their respective information.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded. from employee. For the programmer, we add a language attribute and for Pg. 09Question ThreeTypical runs of the program
Question ThreeQuestion Three3 Marks Write a java program that do the following:1. Create a super class named employee which has three attributes name, ageand salary and a method named printData that prints name, age and salary ofan employee.2. Provide two classes named programmer and database specialist(DatabasePro).a. Each one of these classes extends the class employee. Both classes;programmer and the DatabasePro inherit the fields name, age and salarythe specialist (DatabasePro), we add a database tool attribute.b. 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 forprogrammer( i.e., language) and for DatabasePro( i.e.,databaseTool).3. Provide a class Main that creates programmer and database specialist theninitialize and print their respective information.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded. from employee. For the programmer, we add a language attribute and for Pg. 09Question ThreeTypical runs of the program
Question ThreeQuestion Three3 Marks Write a java program that do the following:1. Create a super class named employee which has three attributes name, ageand salary and a method named printData that prints name, age and salary ofan employee.2. Provide two classes named programmer and database specialist(DatabasePro).a. Each one of these classes extends the class employee. Both classes;programmer and the DatabasePro inherit the fields name, age and salarythe specialist (DatabasePro), we add a database tool attribute.b. 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 forprogrammer( i.e., language) and for DatabasePro( i.e.,databaseTool).3. Provide a class Main that creates programmer and database specialist theninitialize and print their respective information.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded. from employee. For the programmer, we add a language attribute and for Pg. 09Question ThreeTypical runs of the program
Question ThreeQuestion Three3 Marks Write a java program that do the following:1. Create a super class named employee which has three attributes name, ageand salary and a method named printData that prints name, age and salary ofan employee.2. Provide two classes named programmer and database specialist(DatabasePro).a. Each one of these classes extends the class employee. Both classes;programmer and the DatabasePro inherit the fields name, age and salarythe specialist (DatabasePro), we add a database tool attribute.b. 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 forprogrammer( i.e., language) and for DatabasePro( i.e.,databaseTool).3. Provide a class Main that creates programmer and database specialist theninitialize and print their respective information.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded. from employee. For the programmer, we add a language attribute and for Pg. 09Question ThreeTypical runs of the program
Question ThreeQuestion Three3 Marks Write a java program that do the following:1. Create a super class named employee which has three attributes name, ageand salary and a method named printData that prints name, age and salary ofan employee.2. Provide two classes named programmer and database specialist(DatabasePro).a. Each one of these classes extends the class employee. Both classes;programmer and the DatabasePro inherit the fields name, age and salarythe specialist (DatabasePro), we add a database tool attribute.b. 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 forprogrammer( i.e., language) and for DatabasePro( i.e.,databaseTool).3. Provide a class Main that creates programmer and database specialist theninitialize and print their respective information.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded. from employee. For the programmer, we add a language attribute and for Pg. 09Question ThreeTypical runs of the program
Question ThreeQuestion Three3 Marks Write a java program that do the following:1. Create a super class named employee which has three attributes name, ageand salary and a method named printData that prints name, age and salary ofan employee.2. Provide two classes named programmer and database specialist(DatabasePro).a. Each one of these classes extends the class employee. Both classes;programmer and the DatabasePro inherit the fields name, age and salarythe specialist (DatabasePro), we add a database tool attribute.b. 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 forprogrammer( i.e., language) and for DatabasePro( i.e.,databaseTool).3. Provide a class Main that creates programmer and database specialist theninitialize and print their respective information.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded. from employee. For the programmer, we add a language attribute and for Pg. 09Question ThreeTypical runs of the program
Question Three
Question Three
3 Marks
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).
a. Each one of these classes extends the class employee. Both classes;
programmer and the DatabasePro inherit the fields name, age and salary
the specialist (DatabasePro), we add a database tool attribute.
b. 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).
3. Provide a class Main that creates programmer and database specialist then
initialize and print their respective information.
Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded.
from employee.
For the programmer, we add a language attribute and for
Pg. 09
Question Three
Typical runs of the program
Question Threequestion Three3 Marks Write A Java Program That Do The Following 1 Create A Super Class Named Empl 1
Question Threequestion Three3 Marks Write A Java Program That Do The Following 1 Create A Super Class Named Empl 1 (21.48 KiB) Viewed 37 times
Class diagram Typical runs of the program Employee name: String age: int Salary double name: Ben age: 37 salary: 77435.0 language: Java name: Jack age: 28 salary: 45000.0 Database Tool: My SOL ---GRASP: operation complete. Database Pro Programmer language Sering databaseToolString Answer public class employee String name; int age; double salary;