QuestionQ77

Design and develop AOT elements

You extend the insert method of CustTable by using Chain of Command.

You need to display a message after a record is created when the Sales tax group is complete.

Which code segment should you use?

  • A
  • B
  • C
  • D
Explanation

In a Chain of Command wrapper, next insert(...) invokes the next implementation in the chain, ultimately performing the standard record insertion. Placing the TaxGroup check and info call after that invocation makes the notification a post-insert action and limits it to customers that have a sales tax group. Wrapper methods must call next unconditionally. Microsoft Learn documents that next calls the next method in the Chain of Command sequence and that wrappers must call it.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!