Classes and Objects: A class has data and methods.
A car class may have the following methods:
And as data:
- speed, numberOfDoors, numberOfSeats, ...
A finite field class may have as methods:
- add(), multiply(), subtract(), divide(), exponentiate(), computeFrobenius()
And as data:
- characteristic, generating polynomial, generator of multiplicative group, ...
Rings, spaces, categories, etc. can easily identified as classes or objects.