- 浏览: 122027 次
- 性别:
- 来自: 深圳
最新评论
-
xuzhenAAfufang:
...
对任何一天是星期几算法的实现 -
xuzhenAAfufang:
a=(d+2*m+3*(m+1)/5+y+y/4-y/100+ ...
对任何一天是星期几算法的实现
文章列表
Consider the distinction between object aggregation and acquaintance and how differently they manifest
themselves at compile- and run-times. Aggregation implies that one object owns or is responsible for
another object. Generally we speak of an object having or being part of another object. Aggregati ...
- 2007-06-16 15:26
- 浏览 1323
- 评论(0)
The two most common techniques for reusing functionality in object-oriented systems are class inheritance
and object composition. As we've explained, class inheritance lets you define the implementation of one
class in terms of another's. Reuse by subclassing is often referred to as white-box reuse. ...
- 2007-06-16 15:04
- 浏览 1410
- 评论(0)
It's important to understand the difference between an object's class and its type.
An object's class defines how the object is implemented. The class defines the object's internal state and the
implementation of its operations. In contrast, an object's type only refers to its interface—the set of re ...
- 2007-06-16 14:57
- 浏览 1056
- 评论(0)
Class inheritance is basically just a mechanism for extending an application's functionality by reusing
functionality in parent classes. It lets you define a new kind of object rapidly in terms of an old one. It lets
you get new implementations almost for free, inheriting most of what you need from e ...
- 2007-06-16 14:46
- 浏览 848
- 评论(0)
It's also important to understand the difference between class inheritance and interface inheritance (or
subtyping). Class inheritance defines an object's implementation in terms of another object's implementation.
In short, it's a mechanism for code and representation sharing. In contrast, interface ...
- 2007-06-16 14:40
- 浏览 922
- 评论(0)