✅ 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) { ... }
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!