Classes are definitions combining data (otherwise known as attributes
, properties
,data members
, variables
, or fields
) with functions
(otherwise known as methods
).
Class definitions are used to create copies or instances
of the class
, commonly known as objects
.
Objects can represent real world entities (such as cars or cats) - or more abstract concepts (such as integers, vehicles, or mammals).
Each object is unique in computer memory and represents some part of an overall model.
Classes and objects can be found in several programming paradigms, but are integral to object oriented programming (OOP), in which programs are made up of objects that interact with one another.