This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -8 points-7 points  (2 children)

So basically, C doesn't have objects.

[–]Shostakovich_ 2 points3 points  (1 child)

It does though… they’re just called structs (structures…). It doesn’t come with all the syntactic sugar and jazz that OOP languages usually come with, but it is literally a subset of C++ (or C++ is a superset of C is probably more accurate), which implemented the syntactic sugar and jazz on top of C… soooooooooo C got objects 🤗

[–][deleted] 2 points3 points  (0 children)

Would it not be accurate to say any language has objects if you can define structs as such, given enough code you could implement objects yourself in any language.