错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Reusing Classes via Inheritance and Composition

  • Jeff Friesen

摘要

Chapter 6 introduced you to classes, which encapsulate (combine) fields (that store state), methods (that implement behaviors), and constructors (that instantiate objects). This arrangement is known as object-based programming.