Question: 3. Create another Java class called Customer within the same project ProgrammingAssignment3 and include the main method. Part A: Include the following Java classes to






3. Create another Java class called Customer within the same project ProgrammingAssignment3 and include the main method. Part A: Include the following Java classes to the above created Java file. Define al the instance variables with private access modifier and constructors, instance methods with public access modifier Item class: This class has following instance variables, constructor and instance methods itemName String unitPrice: double numberOfUnits : int Instance Variable:s Constructor Default constructor Get and set methods for itemName, unitPrice and numberOfUnits Instance Methods variables. itemTotal: Find the total price (unitPrice numberOfUnits) for that particular item and return it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
