软件体系结构第一次作业
作业要求:The following class diagramrepresents a design in factory method pattern to query the features ofdifferent types of auto insurances. See the source code for the implementationof the following class diagram.
1) First in thefollowing design, in the class hierarchy named AutoInsurance, add a class LuxeryCarInsurance
2) The class LuxeryCarInsurance hasthesame interface and methods as every class in this class hierarchy
3) You write aword description of the new insurance
4) Then youneed to add a sub class in the class hierarchy PolicyProducer to create objectof class LuxeryCarIns

本次作业涉及工厂方法模式的汽车保险信息系统设计,新增了LuxeryCarInsurance类,并在PolicyProducer类中添加相应子类以创建此类对象。FactoryMethodGUI客户端类已修改,能展示Luxery Car Insurance政策。描述了完成的作业内容,包括添加的类、类间关系及代码变更。同时,列出运行ClientGUI选择Body Injury Liability后,点击“显示信息”按钮调用的方法顺序。
最低0.47元/天 解锁文章
6万+

被折叠的 条评论
为什么被折叠?



