Need Assistance?

support@tutorialshub.in

Classes & Object-Oriented TypeScript

Classes & Constructor Parameter Properties

ADVERTISEMENT
TypeScript Free Lesson
5 min read
ADVERTISEMENT

TypeScript adds compile-time types and a neat shorthand called Parameter Properties: putting public, private, or readonly right inside the constructor(...) automatically declares and assigns the class property!

ADVERTISEMENT
Hi, I'm Tuby! Here to help you