Question: JAVA Some coffee shop wants to implement a system to allow its registered Customers to view their purchases. Initially, the system is required to allow
JAVA
Some coffee shop wants to implement a system to allow its registered Customers to view their purchases. Initially, the system is required to allow its Salesperson to view and create sales records. Later, the system will also be required to allow the ShopManager to view, create and update sales records. Answer the questions below:
Using UML class diagram, to represent the objects of above system.
Write source codes in Java programming language to define classes required to create the Customer and Salesperson objects while maintaining the underlying principles of inheritance. Assume Customer, Salesperson and ShopManager have employeeID, empoyeeName and contactDetails attributes in common. Note any assumptions that you may have made when writing the source codes. Note: You can implement the methods to view, create and update sales records by simply displaying different messages. Demonstrate how a Salesperson can create new sales records and how a Salesperson and Customer can view the existing sales records. Note any assumptions that you may have made when writing the program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
