Exam4Training

Which of the following are best practices for adding a new parameter to an existing method of CommerceCartService? Note: There are 2 correct answers to this question.

Which of the following are best practices for adding a new parameter to an existing method of CommerceCartService? Note: There are 2 correct answers to this question.
A . Overload the existing method of CommerceCartService by adding the new parameter.
B . Add a new property to CommerceCartParameter in a beans.xml file.
C . Extend the default strategy called by the method to handle the new parameter.
D . Extend the default implementation of the method to handle the new parameter.

Answer: B, D

Exit mobile version