2 ms·
IMO, OO programming is using internal API's to split programs into smaller pieces that have both data and code and talk to each other by passing messages. From
by Retric 16y ago
IMO, OO programming is using internal API's to split programs into smaller pieces that have both data and code and talk to each other by passing messages. From that perspective inheritance is simply extending an API with another API that has new behavior and uses the existing API etc.
So, while syntactic sugar helps with bookkeeping, OO is a programming technique not a language feature. With great discipline you could write OO code in C, but languages that pick up the slack help you write clean code faster and avoid the temptation, late at night, to use "goto" that one time it really helps. (http://xkcd.com/292/ http://xkcd.com/292/)
PS: This is from the perspective of someone that came to OO later on. I think people who are taught OO programming early have trouble separating the how code using the abstraction from what it actually is.