3

I have been using C for a while, for some reasons I learnt C++.

I can't see why object oriented is a "new" feature. For me an object is just a structure, and a set of functions which have a pointer to this structure as a parameter(the this parameter). So instead of creating structures then functions that modify them, the compiler gives you a direct way to do it. Also for Late Binding, I see it as the same as if you had a hidden member in the structure to a function pointer. So again, nothing new in itself.

So is OO just a compiler feature to make imperative easier by automating some things ?

Raphael
  • 73,212
  • 30
  • 182
  • 400
Link
  • 41
  • 1

0 Answers0