Single Responsibility
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
One class in your app builds a monthly sales report: it queries the database, calculates the totals, formats a PDF and emails it to managers. Explain the single responsibility principle and how you'd split this class up.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.