| 79 | } |
| 80 | |
| 81 | class Casual extends Typist { |
| 82 | // daily wages |
| 83 | public double dwages; |
| 84 | public void getData() { |
| 85 | System.out.println("Enter employee details: "); |
| 86 | System.out.println("Enter name: "); |
| 87 | name = sc.nextLine(); |
| 88 | System.out.println("Enter employee id: "); |
| 89 | emp_id = sc.nextInt(); |
| 90 | System.out.println("Enter daily wages: "); |
| 91 | dwages = sc.nextDouble(); |
| 92 | } |
| 93 | public void displayData() { |
| 94 | System.out.println("Displaying employee details: "); |
| 95 | System.out.println("Name: " + name); |
| 96 | System.out.println("Employee id: " + emp_id); |
| 97 | System.out.println("Daily wages: " + dwages); |
| 98 | } |
| 99 | } |
| 100 | public class EduEmpDB { |
| 101 | public static void main(String[] args) { |
| 102 | // TODO Auto-generated method stub |
nothing calls this directly
no outgoing calls
no test coverage detected