In this example, we modify the "Simple class" example to allow access to the speed property. Typescript accessors allow us to add additional code in getters or setters.
class Car {
    public position: number = 0;
    private _speed: number = 42;
    private _MAX_SPEED = 100
    
   ...