Python, Prompt Engineering, Data Science — Build the Skills Employers Want Now
Launch Your Cybersecurity Career in 6 Months
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Learn how to create and extend classes, implement interfaces, apply visibility modifiers, use static class members, and create getters and setters in TypeScript in this comprehensive tutorial. Explore basic class structures, visibility modifiers including private and protected members, and the definite assignment assertion operator. Discover how to compile and run TypeScript code, create subclasses using extends, implement interfaces, and utilize static class members. Master the use of getters and setters to control access to class properties. Gain practical knowledge through hands-on examples and explanations suitable for beginners in TypeScript programming.
Syllabus
Intro
Welcome
Starter Code
Basic Class
Larger Class
Visibility Modifiers
Definite Assignment Assertion Operator
Private & Protected Examples
Compiling & Running Code
Extends for Subclasses
Implements for Interfaces
Static Class Members
Getters & Setters
Optional: Assignments in the body of the constructor are not necessary at this point either. It is not an error if you choose to do so, but it is not required.
Taught by
Dave Gray