Question: JAVA Hello i would like some help with this program here is my code: Customer.java package Cust; / public static void main(String[] args) { //
JAVA
Hello i would like some help with this program

![my code: Customer.java package Cust; / public static void main(String[] args) {](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39021ae939_17766f3902126809.jpg)

here is my code:
Customer.java
package Cust;
/
public static void main(String[] args) { // TODO code application logic here } private String CustID; private String CustName; private String CustEmail; private boolean isPreferred; public Customer(){} public Customer(String id, String n, String e, boolean p){ CustID = id; CustName = n; CustEmail = e; isPreferred = p; }
/** * @return the CustID */ public String getCustID() { return CustID; }
/** * @param CustID the CustID to set */ public void setCustID(String CustID) { this.CustID = CustID; }
/** * @return the CustName */ public String getCustName() { return CustName; }
/** * @param CustName the CustName to set */ public void setCustName(String CustName) { this.CustName = CustName; }
/** * @return the CustEmail */ public String getCustEmail() { return CustEmail; }
/** * @param CustEmail the CustEmail to set */ public void setCustEmail(String CustEmail) { this.CustEmail = CustEmail; }
/** * @return the isPreferred */ public boolean isIsPreferred() { return isPreferred; }
/** * @param isPreferred the isPreferred to set */ public void setIsPreferred(boolean isPreferred) { this.isPreferred = isPreferred; } @Override public String toString() { return String.format("%1$-8s", CustID)+ String.format("%1$-25s", CustName)+ String.format("%1$-35s", CustEmail)+ }
HW2: Inheritance Preferred Customer Progranm 20 Points Your Task In this program you will demonstrate the use of inheritance by coding Customer (superclass) and PreferredCustomer (subclass) classes. Additional topics include: overriding toString0, calling the superclass constructor from the subclass, use of an ArrayList to store both Customer and PreferredCustomer objects, and polymorphism. Custo Custome PreferedCiastomer Code the following two classes: Customer (superclass) and PreferredCustomer (subclass, extends Custome. See next page for detailed specs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
