logo

Crowdly

Quin refactor és més adequat en aquest cas? class Product {     public void ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Quin refactor és més adequat en aquest cas?

class Product {

    public void getDiscount() {

        DiscountCalculator.calculate(this);

    }

}

class DiscountCalculator {

    public static void calculate(Product p) { ... }

}

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!