Question: In Java please Create the following simplified Customer class: public class Customer {String name; int char float age; gender; money;//A simple constructor public Customer(String n,
Create the following simplified Customer class: public class Customer {String name; int char float age; gender; money;//A simple constructor public Customer(String n, int a, char g, float m) {name = n; age = a; gender = g; money = m;}//Return a String representation of the object public String toString() {String result; result = "Customer " + name + ": a " + age + " year old"; if (gender == 'F') result = "fe"; return result + "male with $" + money;}} Create the following simple Store class. public class Store {public static final int MAX_CUSTOMERS = 500; public Store(String n) {new Customer (MAX_CUSTOMERS); customerCount = 0;} public void addCustopmer(Customer c) {if (customerCOunt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
