class Name {
    public function __construct(
        public string $prop  // promoted property
    ) {}

    public function method(): void { ... }
}

class Child extends Parent { ... }        // inheritance
interface Contract { public function x(); }
class C implements Contract { ... }
trait Shareable { public function y() {} }
class D { use Shareable; }
abstract class Base { abstract public function z(); }
