Question OOP-SOLID-0008
MediumA class Invoice calculates totals, saves itself to a database and prints itself as a PDF. Which principle does it violate?
- A.
Interface Segregation
- B.
Single Responsibility
- C.
Sign up free to see the answer and a step-by-step explanation.