請大家做一道选择题!Up有分!
下面的问题,大家看看应该选哪一个答案?(单选题)
Question:You are design a VB application that will dacilitate the billing process for hospitals.The billing calculations performed by the application are based on laws that are likely to change in the future. When these laws change, you will need an easy way to make modifications to your application.You want to ensure that changes to the billing algorithm will not force you to recompile the entire application. You do not want to redistribute the application. How should you design this application?
A. place all of the billing logic in COM components that reside on a central server. When changes are required, replace these components with new version on th server.
B. place all of the billing logic in a separate code module and only recompile this module when the billing logic changes.
C. use conditional compilation statements to control which code segments should be executed
D. build an activeX control that implements business logic. Change the
progid and the clsid ofthe control when the billing logic is modified.
This will allow client applications to automatically detect changes
made to the billing logic, and they will be able to download the lastest
version of the activeX control.
原文给出的答案是D,我认为是A,大家有何见解?并阐述原因。