6 ms·
There's more to the everyday definition object oriented than having functions operating on in-memory data structures. Two other features that are commonly inclu
by ettoretorti 9y ago
There's more to the everyday definition object oriented than having functions operating on in-memory data structures. Two other features that are commonly included are subtyping through inheritance and encapsulation.
If we stick to your definition C functions operating on structs qualify as OO, and I don't think many would agree with that.
- seanmcdirmid 9y agoMy first exposure to OOP was in C using structures to hold function pointers as a pattern. You can do OO in C without C being OO. There is a huge semantic difference between doing OO and a language at supports OO, the article is referring to the former rather than the latter.