logo

Crowdly

Observa aquest mètode: public void processOrder(Order o) {     if (o.getType...

✅ 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?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on www.vidalibarraquer.net?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!