Write a java program that do the following: 1. Create a super class named employee which has three attributes name, age

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a java program that do the following: 1. Create a super class named employee which has three attributes name, age

Post by answerhappygod »

Write A Java Program That Do The Following 1 Create A Super Class Named Employee Which Has Three Attributes Name Age 1
Write A Java Program That Do The Following 1 Create A Super Class Named Employee Which Has Three Attributes Name Age 1 (62.25 KiB) Viewed 50 times
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 Database Pro 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. 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., databaseTooD. 3. Provide a class Main that creates programmer and database specialist then initialize and print their respective information.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply