Question: 2- Suppose that a payment module(class) is accessed directly by both customer and bank system as shown in the figure below. The customer needs to
2- Suppose that a payment module(class) is accessed directly by both customer and bank system as shown in the figure below. The customer needs to make payment, and the bank needs to validate payment: (4 marks) Bank Customer email:char -firstName: string HastName: string Payment ayment Noint makePayment paymentNo) validate Payment paymeni) a. Mention two SOLID principles that are violated in the mentioned design. b. Create a partial class diagram and redesign the payment module with the associated actors (customer and bank system) in a way that it meets these design principles
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
