2009-11-22

OOP in C - Virtual Function

svn checkout http://gobject-learing.googlecode.com/svn/trunk/ gobject-learing-read-only 


為達到最佳效果,請使用以上指令下載範例碼並與以下投影片一起服用。

OO的Member Function 其實是可以使用Function Pointer及Structure來描述 (廢話)

struct A 
{
int a;
FP  method_a;
};


再加上一點技巧, 就可以完成Virtual Function的實作 :)
Enjoy It.





1 則留言:

  1. Concepts Mittens are introduced via lectures, discussions, demonstrations, research, assigned projects and critiques. The course addresses extensive variety|all kinds} of media, tools, strategies both traditional and technological, and theoretical ideas to facilitate talent development and experimentation with process. Visual comprehension, the flexibility to prepare perceptions and horizontal considering that crosses other disciplines and theories, are key foundational parts to the development of drawback solving expertise. Accumulative features of the curriculum included the exploration of historical and cultural themes and concepts intertwined with features of personal interpretation and expertise. One of the biggest advantages of 3D printing is speed, or time to part in hand. Additional advantages embody flexible design, price savings, and manufacturing quality components without tooling funding.

    回覆刪除