An abstract base class for the customer entity in our application.
Notice how TypeDoc shows the inheritance hierarchy for our class.
A public readonly property.
A public property that can be reassigned.
An optional protected property.
A private property that is accessed via a getter and setter.
A getter that prepends a number sign to the private
A setter that takes in either a string or a number and sets the private
The constructor of the
the customer's database ID
the customer's name
the next number to use when this customer places an order
A public method. To be called when an order is placed for this customer.
A public method that's defined using an arrow function.
TypeDoc knows to document this as a method rather than a property.
A protected method.
A private method.
Generated using TypeDoc