✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Observa aquest mètode:
public void processOrder(Order o) {
if (o.getType().equals("ONLINE")) {
// procés per comanda online
} else if (o.getType().equals("IN_STORE")) {
// procés per comanda a botiga
}
}
Quina tècnica de refactorització seria la més adequada?
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!