Answer:
public class Person {
//fields
private int id;
private String name;
private Payment pay;
//constructor
public Person(String name, int id,
int startSal, int startBon){
this.name = name;
this.id = id;
this.pay = new Payment(startSal, startBon);
}
//method get name
public String getName(){
return name;
}
//method get id
public int getId(){
return id;
}
//method get start salary
public int getStartSalary(){
return pay.startSalary;
}
//method get start bonus
public int getStartBonus(){
return pay.startBonus;
}
//inner payment class
private class Payment{
int startSalary;
int startBonus;
public Payment(int sal, int bon){
this.startSalary = sal;
this.startBonus = bon;
Step 1
Save your work and close all programs. You will be restarting your computer during the process.
Step 2
Click “Start” from the task bar and then choose “All Programs.”
Step 3
Click “Accessories” from the program menu. Choose “System Tools” from the side pop-out menu and then select “System Restore.”
Step 4
Click “Restore my computer to an earlier time” from the Welcome screen. Click “Next” at the bottom.
Step 5
Choose a date in bold from the calendar shown on the Restore Point page. The date that you choose should be an earlier one, like a day or two before the deletion occurred. Click “Next” at the bottom of the window.
Step 6
Click “Next” on the next page. The restoration begins, and your computer will restart.
Step 7
Click “OK” from the completion window that appears when your computer loads again.