In object-oriented programs, the classes are the highest level elements.
The classes contain the functions (or the methods, as they're referred to in OOP jargon) and the data.
In procedural programming, data belongs to functions or occasionally is stored in global variables.
Object-oriented programming languages
encapsulate both data and methods in classes.