1.4 reusing the implementation
1.5 inheritance: reusing the interface 【程序编程相关:oracle数据库用户创建、权限分配】
we could reuse a class by instantiate it as an obect or place an object of this class inside a new class(this is called composition or aggregation). 【推荐阅读:WSDL规则与示例(2)】
inheritance represents a certain kind of relationship between classes/types using the concept of base types and derived types. a base type contains all of the characteristics and behaviors that are shared among the types derived from it. 【扩展信息:真的要好好学习一下网站设计标准了。】
inheritance enables us to clone an existing class and make additions and modifications to the clone.the modified “clone” will reflects the change in the original class.do we need to modify the clone class?
by inheritance, we could add new function to the interface or change the behavior of an existing base-class function.this referred to as overriding that function.
... 下一页