3 ms·
I can also model encapsulation, inheritance and polymorphism in C. That doesn't make it an object-oriented programming language.
by tjpnz 4y ago
I can also model encapsulation, inheritance and polymorphism in C. That doesn't make it an object-oriented programming language.
- orwin 4y agoI'm pretty sure you can do OOP in modern C. I've seen a raytracer in C that implemented it's own dispatch table, and effectively acted like OOP.
- Rochus 4y agoYou can also do OOP in assembler if you have nerves of steel.
- shric 4y agoAnd Alan Kay (first user of the term "object oriented programming") said: "OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. It can be done in Smalltalk and in LISP. There are possibly other systems in which this is possible, but I'm not aware of them."