Class
Also written: classes
A definition of a new type: the data its objects hold (fields), how they are set up (constructors) and what they can do (methods). `Product` is a class, and each product in the shop is an object made from it.
Also written: classes
A definition of a new type: the data its objects hold (fields), how they are set up (constructors) and what they can do (methods). `Product` is a class, and each product in the shop is an object made from it.