0

I keep reading that object-oriented programming can basically be done in any programming language, and that in order to do so, explicit language support is not required. I.e. one can write object-oriented programs in, say, plain C.

What good examples of OO design using a procedural language are there, apart from GTK+?

Which open source projects are good examples of procedural design, on the other hand? (preferably C)

4

1 回答 1

1

在 C 中,OO 编程通常采用在结构指针上调用特定初始化和清理函数的形式,对于多态性,传递函数指针的结构。我能想到的一个例子是 KVM。

于 2012-07-01T01:34:58.170 回答