You are viewing a single comment's thread from:

RE: Object Oriented Programming in C

in #programming8 years ago

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.

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.098
BTC 63327.32
ETH 1829.19
USDT 1.00
SBD 0.38