分类: C/C++
2006-08-08 13:35:08
+-------------------------------------------------------+
| Deal iceable |
| ^ ^ |
| | | |
| +------------------------------+ |
| | Option | |
| +------------------------------+ |
| ^ ^ |
| | | |
| AmOption EurOption |
+--------------------------------+
+--------------+ |class Option |
|针对Option | |{ |
|接口编写的 |< --> | virtual price()=0; |
|代码 | | update(); |
+--------------+ |}; |
|---------------------------------+
|class AmOption:public Option |
|{ |
| virtual price(); |
|}; |
|----------------------------------+
|class EurOption:public Option |
|{ |
| virtual price(); |
|}; |