Skip to content

Why put the data and the functions together

The same program could be written with plain records and separate functions that operate on them.

What does putting them in a class buy?