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;
Hello,
Well my advice for Sara when using the web would be 3 things.
1: Never tell anyone where you live,Your name, Or any other personal information.
This is important as it will keep you safe and others that are in your family.
2: Get anti virus hardware on your devise.
This will help to stop bad people, and bugs/glitches,this will also protect you from information thieves.
3: Make sure to keep your passwords saved on paper.
I know a lot of people use, google(ect.) to save there passwords to make everything easy, but a good way to never loss them is to wright them down.
Have a great day!
It stands for Electronic Business, a typical example of this is a online store.