Le Sunday 28 Aug 2011 à 11:31:35 (+0200), Andreas Rossberg a écrit :
> On Aug 28, 2011, at 01.08 h, Gerd Stolpmann wrote:
> >
> >Let me point out one final thing. Information hiding is simply not a
> >core concept of OO - which is in the first place a specific way of
> >structuring the program (e.g. group data and algorithms together),
> >with
> >an integrated method of adapting object types (subtyping), and giving
> >control of parts of your algorithm to the user of your class.
> 
> Not sure why you would say that.

Information hiding and extensibility via C++ virtual member functions
are orthogonal concepts. It seems to me that, historically, the benefit
of OO was essentially code organisation and reusability. Making it
"easier" was the main benefit over C. Compared to that, information
hiding isn't that great of a benefit compared to what you could already
do in C. In a sense, information hiding is more of a refinement, and not
the core concept of OO.

At least that my take on it.

-- 
     Guillaume Yziquel


-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to