This course will be retired on July 14, 2025.
- Simple Refactoring: Creating a New Class 5:45
- Creating a New Class 2 objectives
- Simple Refactoring: Using a New Class 3:47
- Simple Refactoring 5 questions
- Dynamically Changing the Background Color 3:58
- Dynamically Changing the Background Color 1 objective
- Adding More Colors 3:52
- Using the New Colors 3:38
- Adding Colors 1 objective
- Adding an App Icon 4:47
- Adding an App Icon 3 questions
Quiz Question 1 of 5
Which of the following examples follows the Single Responsibility Principle of software development?
Choose the correct answer below:
-
A
An object that measures position and speed, calculates velocity, and displays this all on a map.
-
B
An object that calculates a number and emails it to you in a spreadsheet.
-
C
An object that stores the properties of a book, like its title and author.
-
D
An object that stores properties about pizza, salads, and drinks and posts your orders to several different social networks.