Please implement Sample string toString()method for each class and return itself a string, not the output.
import java.util.ArrayList;
public class Customer extends User{
private ArrayList orders;
public Customer(String display_name, String password, String email) {
super(display_name, password, email);
}
@Override
public String getPermissionLevel() {
return "CUSTOMER";
}
public void addOrder(Order order){
this.orders.add(order);
}
public ArrayList listOrders(){
return this.orders;
};
}
----------------
public class ElectronicProduct extends Product{
private long SNo;
private String warranty_period;
public ElectronicProduct(long SNo, String warranty_period, String productId, String productName,...