How do you implement polymorphism in C?
Using Function Pointers
Like void qsort ( void * base, size_t num, size_t size, int ( * comparator ) ( const void *, const void * ) );
http://www.cprogramming.com/tutorial/function-pointers.html
Jan 18, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment