Kizspy | Question: 23
(Choose 1 answer)
You are developing a JSP MVC application for an online shopping platform. Each product has complex pricing logic based on discounts, promotions, and user roles. Describe how you would design the Model to handle this intricate pricing logic efficiently.
A. Embed pricing logic directly in the JSP pages.
B. Delegate pricing logic to a dedicated PricingService class in the Model.
C. Utilize a separate database table for storing pricing rules.
D. Implement pricing calculations within the Controller.