Abstract
Readonly
idA public readonly property.
A public property that can be reassigned.
Protected
Optional
contactAn optional protected property.
Private
_nextA private property that is accessed via a getter and setter.
A getter that prepends a number sign to the private _nextOrderNumber
property.
A setter that takes in either a string or a number and sets the private
_nextOrderNumber
property.
The constructor of the Customer
class.
the customer's database ID
the customer's name
the next number to use when this customer places an order
Protected
isPrivate
doGenerated using TypeDoc
An abstract base class for the customer entity in our application.
Notice how TypeDoc shows the inheritance hierarchy for our class.