Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I am having trouble with understanding where in my code the following is inputed: Code for a try-catch block for navigating menu Code for

Hello,

I am having trouble with understanding where in my code the following is inputed:

  • Code for a try-catch block for navigating menu
  • Code for a try-catch block for input acceptance for variables
  • Code for a try-catch block for all newly created objects (Create Function)
  • Code for a try-catch block for updating objects (Update Function)
  • Code for a try-catch block for reading request objects (Read Function)

I appreciate any help i can get.

Thank you.

Holly

package employee.java;

public abstract class Employee {

//Variables

private String name;

private int employeeID;

private String phoneNum;

private String address;

protected double salary;

//Default Constructor

public Employee(){}

//Parameterized constructor to assic values for its data members

public Employee(String nameP, int employeelDP, String phoneNumP, String addressP) {

this.name=nameP;

this.employeeID = employeelDP; this.phoneNum = phoneNumP;

this.address = addressP;

}

public abstract void printInformation();

public abstract void printEmployeeworkNature();

public void workType() {}

public void calculateSalary() {}

//Getters

public String getName(){

return this.name;

}

public int getEmployeeID(){return this.employeeID;}

public String getPhoneNum(){return this.phoneNum;}

public String getAddress() {return this.address;}

//Setters

public void setName(String name){this.name= name;}

public void setEmployeelD(int id) {this.employeeID=id;}

public void setPhoneNum(String num)

{this.phoneNum = num;}

public void setAddress(String add) {this.address = add;}

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Programming

Authors: Joyce Farrell

9th edition

1337397075, 978-1337397070

Students also viewed these Programming questions