Ads by Google

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

2009/06/30

Last week, I tried to redesign the Agent class for my thinking.
These were my works,
1. I visualized existing class diagram with Doxygen
2. I understood the attributes and methods in exisiting class
3. I tried to redesign those attributes and methods for my thinking, but I could not organize my thinking yet.

And so, I will continue to redesign the Agent class in this week.


By the way, I studied the "pure virtual funtion."
In C++, pure virtual functions are declared using a special syntax [ =0 ] as below.

virtual type func-name( parameter-list ) = 0;
ex) virtual void Initialize() = 0;

The pure virtual function declaration in abstract_class provides only the prototype of the method.
Abstract class itself cannnot make objects.
We have to ( or can ) redefine the function in each sub_class.

コメントの投稿

非公開コメント

プロフィール

Author:kyohei YUGETA
FC2ブログへようこそ!

最近の記事
最近のコメント
最近のトラックバック
月別アーカイブ
カテゴリー
ブログ内検索
RSSフィード
リンク
By FC2ブログ

今すぐブログを作ろう!

Powered By FC2ブログ

ブロとも申請フォーム

この人とブロともになる

QRコード
QRコード