class
A blueprint for objects: the data they hold and what they can do.
A class is a reference type that declares fields, properties, methods, constructors, and other members; instances are created with new.
Examples
class Cart { public List<string> Items { get; } = []; }describes carts; eachnew Cart()makes one.
See also