Liste des Groupes | Revenir à col misc |
I think theYes. That's what I took out of it. You packaged a data structure together with the ways to access it and operations that could be performed on it.
true appeal of OOP (as I see it) is that it's an extension of the
*concept* of data structures; that is, it's a way of organizing data
into discrete structures that (when designed well, anyway) map neatly
to entities in the model of the problem the program is meant to solve.
But in addition to raw data, OOP allows the programmer to package the
*operations* inherent to an entity right along with it - and to adapt
them to one particular flavor of entity or another, as needed, so that
rather than having to remember the distinction between:
Les messages affichés proviennent d'usenet.