Classes are declared with the class keyword and instantiated with new. Properties and methods can be public, protected, or private, controlling visibility from outside code and subclasses.
The $this pseudo-variable refers to the current instance inside methods, and constructors are defined via __construct().