Alex Rivera | Logout

How can I simulate OO-style polymorphism in C?

Asked 2009-02-07T16:13:17.863
82

Is there a way to write OO-like code in the C programming language?


See also:

Found by searching on "[c] oo".

Edit
Report

1 Answer

1

The file functions fopen, fclose, fread are examples of OO code in C. Instead of the private data in class, they work on the FILE structure which is used to encapsulate the data and the C functions acts as an member class functions. http://www.amazon.com/File-Structures-Object-Oriented-Approach-C/dp/0201874016

answered 2009-02-07T16:44:13.090

Your Answer