From struct to class: structures with functions

Object-Orientation means keeping data and functions together. C++ has something between C structs and full-blown classes: structs with functions. Here functions are added to the struct definition. those functions operate only on the struct members. The biggest difference to real classes is that these structs with functions are not polymorphic.