Which of the following code snippets follows the Single Responsibility Principle?
Options
- public class CustomerOrder {
public void createCustomer(int customerId, String name) {
}
2. public void submitOrder(Cart shopCart) {
Order order = orderProcessor.submitOrder(shopCart.getItems());
}
}
3.