inheritanceandclasshierarchies-wiley.pptVIP

  • 7
  • 0
  • 约1.15万字
  • 约 35页
  • 2016-10-06 发布于天津
  • 举报
inheritanceandclasshierarchies-wiley

Chapter 3: Inheritance and Class Hierarchies * A Shape Class Hierarchy (continued) Chapter 3: Inheritance and Class Hierarchies * A Shape Class Hierarchy (continued) Chapter 3: Inheritance and Class Hierarchies * Object Factories An object factory is a method that creates instances of other classes Object factories are useful when: The necessary parameters are not known or must be derived via computation The appropriate implementation of an interface or abstract class should be selected as the result of some computation Chapter 3: Inheritance and Class Hierarchies * Chapter Review Inheritance

文档评论(0)

1亿VIP精品文档

相关文档