Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started