constructor property promotion
Also written: promotion, promoted properties
Writing `public` (or `private`) before a constructor parameter so it also becomes a property, filled from the argument, with no extra code needed.
Also written: promotion, promoted properties
Writing `public` (or `private`) before a constructor parameter so it also becomes a property, filled from the argument, with no extra code needed.