.All code is written inside a class and everything is an object, with the exception of the intrinsic data types (ordinal and real numbers, boolean values, and characters), which are not classes for performance reasons.^ A class defines what data can be in an object, and what operations are performed by the methods.