Question: Create a class named Customer and create fields to store the following information. i. Customer ID ii. Customer Name iii. Laptop price iv. Smartphone
Create a class named Customer and create fields to store the following information. i. Customer ID ii. Customer Name iii. Laptop price iv. Smartphone price Tablet price V. a. Write constructor for the class. b. Write mutator and accesor methods for all the fields c. Create three objects for the class Customer d. Show the state of all three objects. e. Write a method named TotalPrice to show the sum of all three item's prices. NOTE: Take the screenshots of the results from BlueJ Software
Step by Step Solution
3.49 Rating (152 Votes )
There are 3 Steps involved in it
class Customer String customerID String customerName double laptopPrice double smartphonePrice doubl... View full answer
Get step-by-step solutions from verified subject matter experts
