1、面向对象的测试7(续)* 1议题u面向对象的软件特征u面向对象的类测试u面向对象的集成与系统测试Date 2面向对象的软件特征软件缺陷可能不能修复 没有足够的时间 不算真正的软件缺陷 修复的风险太大 不值得修复审查软件缺陷,判定是否可以修复判定依据是软件测试的缺陷报告Date 3Object OrientationEncapsulationAbstractionHierarchyModularityObject Orientation的原理Date 4SalespersonCustomer ProductManages Complexity提取抽象 AbstractionDate 5Impro
2、ves Resiliency封装 EncapsulationHide implementation from clients Clients depend on interfaceDate 6Order Processing SystemBillingOrderEntryOrderFulfillmentManages Complexity模块化 Modularity?The breaking up of something complex into manageable piecesDate 7Decreasing abstractionIncreasing abstractionAssetR
3、eal EstateSavingsBank AccountChecking StockSecurityBondElements at the same level of the hierarchy should be at the same level of abstraction层次 Hierarchy Levels of abstractionDate 8Object Orientation中的概念ObjectClassAttributeOperationInterface (Polymorphism)ComponentPackageRelationshipsDate 9TruckChemical ProcessLinked List对象 Object Informally, an object represents an entity, either physical, conceptual, or software Physical entity Conceptual entity Software entityDate 10