A class describes an object blueprint with its properties and methods; an object is an instance of it created with new. Inside methods, $this refers to the current object. Object-oriented programming groups data and behaviors in the same place.
Example
class Produit {
public string $nom;
}
$p = new Produit();
$p->nom = 'Livre';