Question OOP-SOLID-0065
HardA PaymentService does new StripeGateway() inside its methods. Which change follows Dependency Inversion?
- A.
Make PaymentService a subclass of StripeGateway
- B.
Make StripeGateway static
- C.
Sign up free to see the answer and a step-by-step explanation.