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;
Design a ringtone like it says
Answer:
The name of the components of the given labelled circuit is:
The box like figure in the given image is the battery source from where the current drawn into the circuit.
A string connecting positive terminal of battery to the bulb is an electric wire through which current flows in the circuit.
A bubble like object in the circuit is a bulb which lights up when current moves through the circuit.
A component connected to the negative terminal of batter source is a switch.
Then open circuit is an open as the key of the switch is open.