@shmVirus

Classes and Objects

Defining types, creating instances, and the relationship between a class and its objects.

A class is a blueprint; an object is a concrete instance built from that blueprint. This chapter covers class syntax, constructors, fields, and methods — and the mental model of treating data and behaviour as a single unit.