RE: Object Oriented Programming in C

You are viewing a single comment's thread from:

Object Oriented Programming in C

in programming •  7 years ago 

Interesting article. But saying that C is easier to debug and maintain, and then giving "polymorphism" example relying on elements order in a struct is a bit overstretch :)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi @mactro.
I understand where you are coming from.
I guess that this is very common in C and preserving element order between parent struct and derived struct is exactly what the C++ compiler does for inheritance. :-)
It's not very complicated but it forces the programmer to think about how information is stored in memory.
Thanks for your feedback.