Discussion
2
Replies
133
Views
Posted: August 6, 2015
Last activity: August 6, 2015
Circumstanding Quiz-3
In the Circumstanding Quiz-3
Which of the following scenarios is LEAST likely to use circumstancing as a mechanism to provide the specialization described? (Choose One)
Provide specialized functionality for a particular work type.
Provide specialized functionality when the “RequestedBy” property is “John Doe” and the “BudgetCode” property is “AC2348”
Provide different functionality for when a rule is called during winter months.
Provide specialized functionality when the “YearBuilt” property is 2004 or after.
Provide specialized functionality when a rule is called in the years 2013 and 2015.
The answer=1.
The answer to me looks to be that we can use Inheritance instead of circumstancing. For clarification only I am posting this question. Please provide more clarification if needed.
Chopp-
That's correct. Because each work type is defined with its own slot in the inheritance hierarchy, you can already specialize rules according to class type. Thus, no additional specialization mechanism is necessary.
A good guideline to keep in mid when deciding when circumstancing should be used is this:
For answer 1, the specialization hinges on the type of case the user creates - every case of a specific type requires this functionality. The remaining options all describe situations that vary upon the details of a specific case created from that case type: